public static class PlaySession.ListenerAdapter extends java.lang.Object implements PlaySession.IListener
ListenerAdapter
- PlaySession.IListener
adapter.Constructor and Description |
---|
ListenerAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onMediaEnd(MediaTrackInfo track)
Notifies about media
track end. |
void |
onMediaTimeout(MediaTrackInfo track,
int timeout)
Notifies about media
track timeout. |
void |
onPacketLoss(MediaTrackInfo track,
long lost,
long total,
int margin)
Notifies about RTP packet loss.
|
public void onMediaTimeout(MediaTrackInfo track, int timeout)
PlaySession.IListener
track
timeout.onMediaTimeout
in interface PlaySession.IListener
timeout
- timeout (in milliseconds)public void onMediaEnd(MediaTrackInfo track)
PlaySession.IListener
track
end.onMediaEnd
in interface PlaySession.IListener
public void onPacketLoss(MediaTrackInfo track, long lost, long total, int margin)
PlaySession.IListener
onPacketLoss
in interface PlaySession.IListener
lost
- total number of lost RTP packetstotal
- total number of received RTP packetsmargin
- current jitter buffer margin value