com.xuggle.mediatool.demos
Class DecodeAndPlayAudioAndVideo

Package class diagram package DecodeAndPlayAudioAndVideo
java.lang.Object
  extended by com.xuggle.mediatool.AMediaListenerMixin
      extended by com.xuggle.mediatool.MediaListenerAdapter
          extended by com.xuggle.mediatool.demos.DecodeAndPlayAudioAndVideo
All Implemented Interfaces:
IMediaListener

public class DecodeAndPlayAudioAndVideo
extends MediaListenerAdapter

Using IMediaReader, takes a media container, finds the first video stream, decodes that stream, and then plays the audio and video.


Constructor Summary
DecodeAndPlayAudioAndVideo()
           
 
Method Summary
static void main(String[] args)
          Takes a media container (file) as the first argument, opens it, plays audio as quickly as it can, and opens up a Swing window and displays video frames with roughly the right timing.
 
Methods inherited from class com.xuggle.mediatool.MediaListenerAdapter
onAddStream, onAudioSamples, onClose, onCloseCoder, onFlush, onOpen, onOpenCoder, onReadPacket, onVideoPicture, onWriteHeader, onWritePacket, onWriteTrailer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecodeAndPlayAudioAndVideo

public DecodeAndPlayAudioAndVideo()
Method Detail

main

public static void main(String[] args)
Takes a media container (file) as the first argument, opens it, plays audio as quickly as it can, and opens up a Swing window and displays video frames with roughly the right timing.

Parameters:
args - Must contain one string which represents a filename


Copyright © 2008, 2010 Xuggle