Decodes an Flv Stream to extract the AudioData and the MetaData.
More...
|
| void | stopDecodingThread () |
| |
|
boolean | onDataReceived (byte[] data, int dataLength) |
| |
|
void | setMetaDataDecodedListener (MetaDataDecodedListener metaDataDecodedListener) |
| | Sets the listener to be notified when new meta data is decoded.
|
| |
|
void | setAudioDataDecodedListener (AudioDataDecodedListener audioDataDecodedListener) |
| | Sets the listener to be notified when new audio data is decoded.
|
| |
| void | startDecodingInBackground () |
| | Creates and InputStream and starts a thread that decodes it and does the actual job of extracting the audio data and parameters and the meta data.
|
| |
|
void | stop () |
| | Stops the decoding thread and close the streams.
|
| |
| void | setReferenceTimestampToNow () |
| |
|
|
static final int | TAG_TYPE_AUDIO = 0x08 |
| |
|
static final int | TAG_TYPE_META = 0x12 |
| |
|
| void | startDecodingThread () |
| |
| | StreamContainerDecoder () |
| | Creates the internal streams used to transfer the new data received from the socket to a stream that can be used in blocking reading.
|
| |
| void | notifyMetaDataDecoded (final Map< String, Object > metaData, int timestamp) |
| | Notifies the MetaDataListener that a MetaData was decoded.
|
| |
|
void | notifyAudioConfigDecoded (AudioConfig audioConfig) |
| | Notifies the AudioDataListener that the AudioConfig was decoded.
|
| |
|
void | notifyAudioDataDecoded (byte[] audioData, int audioDataLength, int timestamp) |
| | Notifies the AudioDataListener that an AudioData was decoded.
|
| |
|
|
final String | TAG = "StreamContainerDecoder" |
| |
| volatile QueueInputStream | mInputStreamForDecodingThread |
| | Stream where new received bytes are enqueued, read by the decoder.
|
| |
| long | mReferenceTimestamp |
| | The timestamp of the machine at the moment when the decoding starts.
|
| |
Decodes an Flv Stream to extract the AudioData and the MetaData.
This class uses CoreMedia to parse the Flv. The Flv Decoding respects the format described at http://osflash.org/flv.
◆ startDecodingThread()
| void com.tritondigital.net.streaming.proxy.decoder.flv.FlvDecoder.startDecodingThread |
( |
| ) |
|
|
protected |
◆ stopDecodingThread()
| void com.tritondigital.net.streaming.proxy.decoder.flv.FlvDecoder.stopDecodingThread |
( |
| ) |
|
The documentation for this class was generated from the following file:
- streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/decoder/flv/FlvDecoder.java