com.xuggle.mediatool
Interface IMediaViewer

Package class diagram package IMediaViewer
All Superinterfaces:
IMediaListener

public interface IMediaViewer
extends IMediaListener

EXPERIMENTAL ONLY: An IMediaListener that plays audio, video or both, while listening to a IMediaGenerator that produces raw media.

The IMediaViewer is currently in experimental mode. That means it has some bugs where it can hang (in particular if there isn't as much audio in the file as video, but there are others), and we expect there will be some API and functionality changes in future releases. It's really something we're playing with and would like to get feedback on, but do not use it in production projects . You should not expect backwards compatibility on this part of the API.

You can use this object to attach to a IMediaReader or a IMediaWriter to see the output as they work.

You can optionally have the IMediaViewer display statistics on-screen while playing about the contents of the media file, and overlay a clock on the screen while playing.

Please note that due to limitations in Sun's sound system on Linux there is a lag between audio and video in Linux. Not much we can do about it, but anyone who knows a fix (the issue is with the precision of DataLine.getMicrosecondPosition()), please let us know.


Nested Class Summary
static class IMediaViewer.Mode
          The mode you want to view media in.
 
Method Summary
 int getDefaultCloseOperation()
          Get the default close operation.
 IMediaViewer.Mode getMode()
          Get media playback mode.
 boolean willShowStatsWindow()
          Will this viewer show a stats window?
 
Methods inherited from interface com.xuggle.mediatool.IMediaListener
onAddStream, onAudioSamples, onClose, onCloseCoder, onFlush, onOpen, onOpenCoder, onReadPacket, onVideoPicture, onWriteHeader, onWritePacket, onWriteTrailer
 

Method Detail

willShowStatsWindow

boolean willShowStatsWindow()
Will this viewer show a stats window?

Returns:
will this viewer show a stats window?

getDefaultCloseOperation

int getDefaultCloseOperation()
Get the default close operation. The close operation speciefies what should Swing do if the window is closed. See the WindowConstants documentation for valid values.

Returns:
the default close operation

getMode

IMediaViewer.Mode getMode()
Get media playback mode.

Returns:
the playback mode
See Also:
IMediaViewer.Mode


Copyright © 2008, 2010 Xuggle