nsIStreamingProtocolListener

nsIStreamingProtocolListener

Methods

onMediaDataAvailable(index, data, length, offset, meta)

Called when the data may be read without blocking the calling thread.

Parameters

index The track number of the media stream.
data Raw data of the media stream on given track number.
length The length of the raw data.
offset The offset in the data stream from the start of the media presentation in bytes.
meta The meta data of the frame.

onConnected(index, meta)

Called when the meta data for a given session is available.

Parameters

index The track number of the media stream.
meta The meta data of the media stream.

onDisconnected(index, reason)

Called when the Rtsp session is closed.

Parameters

index Track number of the media stream.
reason The reason of disconnection.