Package uk.co.caprica.vlcj.player

Examples of uk.co.caprica.vlcj.player.MediaPlayerFactory


* This test requires libvlc 2.1.0 or later.
*/
public class ApplicationIdTest extends VlcjTest {

    public static void main(String[] args) {
        MediaPlayerFactory factory = new MediaPlayerFactory();

        factory.setUserAgent("Test Application", "Test Application HTTP");
        factory.setApplicationId("Test Application Id", "1.0.0", "icon.png");

        factory.release();
    }
View Full Code Here


      running = false;
 
      networkCache = cache;
     
      streamPort = port;
      factory = new MediaPlayerFactory("--no-video-title-show");

      stream = factory.newEmbeddedMediaPlayer();      

      videoSurface = factory.newVideoSurface(canvas);
View Full Code Here

  running = false;

  networkCache = 300;

  streamPort = 8080;
  factory = new MediaPlayerFactory("--no-video-title-show");

  videoSurface = factory.newVideoSurface(canvas);
    }
View Full Code Here

    NetworkStream(Canvas canvas, int cache,int port)
    {
      networkCache = cache;
     
      streamPort = port;
      factory = new MediaPlayerFactory("--no-video-title-show");

      stream = factory.newEmbeddedMediaPlayer();      

      videoSurface = factory.newVideoSurface(canvas);
View Full Code Here

        if (Platform.isMac()){
            args = new String[] {"--no-video-title-show", "--vout=macosx"};
        }else{
            args = new String[] {"--no-video-title-show"};
        }
        factory = new MediaPlayerFactory(args);
        mediaPlayer = factory.newEmbeddedMediaPlayer(null);
        mediaPlayer.addMediaPlayerEventListener(new MediaPlayerControl());
        Canvas c = new Canvas();
        this.getContentPane().setLayout(new BorderLayout());
        this.getContentPane().add(c, BorderLayout.CENTER);
View Full Code Here

    private MediaPlayerFactory factory;
   
  public VideoRunner(String filePath, int port){
    this.filePath = filePath;
    this.port = port;
    factory = new MediaPlayerFactory();
    mediaPlayer = factory.newMediaPlayer();     
    mlp = factory.newMediaListPlayer();
  }
View Full Code Here

  private MediaPlayer mediaPlayer;
 
  public SubscriberEventHandler(VideoSubscriberGUI gui) throws SocketException{
    this.gui = gui;
    ds= new DatagramSocket();
    MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();
    mediaPlayer = mediaPlayerFactory.newMediaPlayer()
  }
View Full Code Here

    Log.d(LOG_TAG, "play: " + rampClient);
    this.isTranscoding = isTranscoding;
    if (isTranscoding) {
      initializeTranscoder();

      mediaPlayerFactory = new MediaPlayerFactory();
      mediaPlayer = mediaPlayerFactory.newHeadlessMediaPlayer();
      // Add a component to be notified of player events
      mediaPlayer.addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
        public void opening(MediaPlayer mediaPlayer) {
          Log.d(LOG_TAG, "VLC Transcoding: Opening");
View Full Code Here

    }
   
    public void initVideo() {
  if(!isVideo) return;
  try {
      playerFactory = new MediaPlayerFactory(new String[] {"--no-video-title-show", "--noaudio"});
      player = playerFactory.newDirectMediaPlayer("RGBA", WIDTH, HEIGHT, WIDTH * DEPTH, this);
      player.prepareMedia(videoFile.getAbsolutePath());
            player.pause();
  } catch(Throwable t) {
      isVideo = false;
View Full Code Here

        mediaPlayer.release();
      }
      if (mediaPlayerFactory != null) {
        mediaPlayerFactory.release();
      }
      mediaPlayerFactory = new MediaPlayerFactory();
      mediaPlayer = mediaPlayerFactory.newHeadlessMediaPlayer();
      // Add a component to be notified of player events
      mediaPlayer.addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
        public void opening(MediaPlayer mediaPlayer) {
          Log.d(LOG_TAG, "VLC Transcoding: Opening");
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.player.MediaPlayerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.