Developer Documentation
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

NameTypeDescription
mediaIdUInt16decoder id
samplerateUInt32samplerate
stereoBooleanstereo flag
decoderMediaDecoderoutput media

Returns

TypeDescription
Booleantrue on success or false