Package uk.co.caprica.vlcj.player

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


        String mediaOptions = sb.toString();

        final MediaPlayerFactory factory = new MediaPlayerFactory();
        final HeadlessMediaPlayer mediaPlayer = factory.newHeadlessMediaPlayer();
        mediaPlayer.addMediaPlayerEventListener(new MediaPlayerEventAdapter() {
            DecimalFormat df = new DecimalFormat("0.00");

            @Override
            public void playing(MediaPlayer mediaPlayer) {
                System.out.println("Playing...");
View Full Code Here


     * Create a test audio player.
     */
    public DirectAudioPlayerTest() throws IOException {
        factory = new MediaPlayerFactory();
        audioPlayer = factory.newDirectAudioPlayer("S16N", 44100, 2, new TestAudioCallbackAdapter(new File("test.raw")));
        audioPlayer.addMediaPlayerEventListener(new MediaPlayerEventAdapter() {

            @Override
            public void playing(MediaPlayer mediaPlayer) {
                Logger.info("playing()");
            }
View Full Code Here

      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");
        }

        public void buffering(MediaPlayer mediaPlayer, float newCache) {
View Full Code Here

        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");
        }

        public void buffering(MediaPlayer mediaPlayer, float newCache) {
View Full Code Here

TOP

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

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.