public final class RtpPlaySession extends PlaySession
RtpPlaySession
- RTP play session.PlaySession.IListener, PlaySession.ListenerAdapter
listener
Modifier and Type | Method and Description |
---|---|
void |
play(IVideo video,
java.lang.Object... args)
Starts the playback.
|
void |
setJitterBufferMargin(MediaTrackInfo track,
int margin)
Sets jitter buffer margin for the
track . |
void |
setLogger(ILogger logger)
Sets the logger.
|
void |
setMediaTimeout(MediaTrackInfo track,
int timeout)
Sets media data timeout for the
track . |
void |
setup()
Setups specified presentation's media tracks.
|
void |
teardown()
Teardowns playback.
|
setListener
public void setLogger(ILogger logger)
logger
- public void setJitterBufferMargin(MediaTrackInfo track, int margin)
PlaySession
track
.setJitterBufferMargin
in class PlaySession
public void setMediaTimeout(MediaTrackInfo track, int timeout)
PlaySession
track
.setMediaTimeout
in class PlaySession
timeout
- timeout (in milliseconds)public void setup()
public void play(IVideo video, java.lang.Object... args) throws java.lang.IllegalStateException
video
- IVideo
instance that accepts media dataargs
- play argumentsjava.lang.IllegalStateException
- if connection is not established yetpublic void teardown()