public final class RtpMulticastPlaySession
extends java.lang.Object
RtpMulticastPlaySession
- RTP multicast client that plays RTP session defined in presentation.Modifier and Type | Class and Description |
---|---|
static interface |
RtpMulticastPlaySession.IListener
IListener - listener. |
Constructor and Description |
---|
RtpMulticastPlaySession(RtspClient client,
IPresentation presentation,
RtpUdpSessionManager sessionManager)
Constructor.
|
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 |
setListener(RtpMulticastPlaySession.IListener listener)
Sets the listener.
|
void |
setup()
Setups specified presentation's media tracks.
|
void |
teardown()
Teardowns playback.
|
public RtpMulticastPlaySession(RtspClient client, IPresentation presentation, RtpUdpSessionManager sessionManager)
client
- presentation
- sessionManager
- public void setListener(RtpMulticastPlaySession.IListener listener)
listener
- public void setJitterBufferMargin(MediaTrackInfo track, int margin)
track
.track
- margin
- 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()