Interface IMediaViewer
-
- All Superinterfaces:
IMediaListener
public interface IMediaViewer extends IMediaListener
EXPERIMENTAL ONLY: AnIMediaListenerthat plays audio, video or both, while listening to aIMediaGeneratorthat produces raw media.The
IMediaVieweris 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
IMediaReaderor aIMediaWriterto see the output as they work.You can optionally have the
IMediaViewerdisplay 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
Nested Classes Modifier and Type Interface Description static classIMediaViewer.ModeThe mode you want to view media in.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDefaultCloseOperation()Get the default close operation.IMediaViewer.ModegetMode()Get media playback mode.booleanwillShowStatsWindow()Will this viewer show a stats window?-
Methods inherited from interface com.avpkit.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 theWindowConstantsdocumentation for valid values.- Returns:
- the default close operation
-
getMode
IMediaViewer.Mode getMode()
Get media playback mode.- Returns:
- the playback mode
- See Also:
IMediaViewer.Mode
-
-