Our new developer documentation is now available. Please check it out!
PeerEntity.GetOrCreateDecoder
public bool GetOrCreateDecoder(ushort mediaId, uint samplerate, bool stereo, out MediaDecoder decoder)
Get a output media by id. If the decoder is not found create a new one that will be added PeerEntity
Parameters
Name | Type | Description |
---|---|---|
mediaId | UInt16 | decoder id |
samplerate | UInt32 | samplerate |
stereo | Boolean | stereo flag |
decoder | MediaDecoder | output media |
Returns
Type | Description |
---|---|
Boolean | true on success or false |