Room.GetOrCreateEncoder
public bool GetOrCreateEncoder(ushort mediaId, out MediaEncoder encoder)
public bool GetOrCreateEncoder(ushort mediaId, uint samplerate, bool stereo, out MediaEncoder encoder)
Get a encoder from Room.
Info
Will use the default samplerate and stereo flag set by the current room
Parameters
Name | Type | Description |
---|---|---|
mediaId | UInt16 | id of a input media |
encoder | MediaEncoder | input object |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
Returns
Type | Description |
---|---|
Boolean | true or false on error |
Variants
GetOrCreateEncoder(mediaId, encoder)
public bool GetOrCreateEncoder(ushort mediaId, out MediaEncoder encoder)
Get a encoder from Room.
Warning
Will use the default samplerate and stereo flag set by the current room
Parameters
Name | Type | Description |
---|---|---|
mediaId | UInt16 | id of a input media |
encoder | MediaEncoder | input object |
Returns
Type | Description |
---|---|
Boolean | true or false on error |
GetOrCreateEncoder(mediaId, samplerate, stereo, encoder)
public bool GetOrCreateEncoder(ushort mediaId, uint samplerate, bool stereo, out MediaEncoder encoder)
Get a encoder from Room.
Parameters
Name | Type | Description |
---|---|---|
mediaId | UInt16 | id of a input media |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
encoder | MediaEncoder | input object |
Returns
Type | Description |
---|---|
Boolean | true or false on error |