Our new developer documentation is now available. Please check it out!
Room.CreateEncoder
public MediaEncoder CreateEncoder(ushort mediaId)
public MediaEncoder CreateEncoder(ushort mediaId, uint samplerate, bool stereo)
Create a new input media that will be added toRoom
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 |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
Returns
Type | Description |
---|---|
MediaEncoder | input media |
Variants
CreateEncoder(mediaId)
public MediaEncoder CreateEncoder(ushort mediaId)
Create a new input media that will be added toRoom
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 |
Returns
Type | Description |
---|---|
MediaEncoder | input media |
CreateEncoder(mediaId, samplerate, stereo)
public MediaEncoder CreateEncoder(ushort mediaId, uint samplerate, bool stereo)
Create a new input media that will be added toRoom
Parameters
Name | Type | Description |
---|---|---|
mediaId | UInt16 | id of a input media |
samplerate | UInt32 | custom samplerate |
stereo | Boolean | custom stereo flag |
Returns
Type | Description |
---|---|
MediaEncoder | input media |