public interface IVideo
IVideo
- video object
Note:
- All IVideo methods are invoked by the same thread.
Modifier and Type | Method and Description |
---|---|
void |
onMediaData(MediaTrackInfo track,
MediaData data)
Notifies about available media frame.
|
void |
onPlay(MediaTrackInfo[] tracks)
Notifies about 'Play' tracks.
|
void |
onTeardown()
Notifies about 'TEARDOWN' event.
|
void |
release()
Releases the video.
|
void onPlay(MediaTrackInfo[] tracks)
Note:
- Method execution should be really quick.
tracks
- played media tracksvoid onMediaData(MediaTrackInfo track, MediaData data) throws java.lang.Exception
Note:
- Method execution should be really quick.
track
- media track the media data belongs todata
- media data framejava.lang.Exception
- if an exception occuredvoid onTeardown()
void release()