Class: Room
The Class Room offers an easy way to interact with the Odin Audio Server and ands useful functionality. For more information please visit our docs at https://4players.io.
Extends
Constructors
new Room()
new Room():
Room
Returns
Overrides
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:134
Properties
defaultGateway
readonly
defaultGateway:"https://gateway.odin.4players.io"
="https://gateway.odin.4players.io"
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:34
inputActivityInterval
inputActivityInterval:
number
Interval how often the AudioActivity of Inputs is dispatched. The lower the value, the more accurate the indicator is at the cost of performance.
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:43
onAudioActivity()?
optional
onAudioActivity: (payload
) =>void
OnAudioActivity gets called, whenever a AudioInput or AudioOutput is producing audio. Only emits, as long as voice activity detection is active.
Parameters
• payload: AudioActivityPayload
Returns
void
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:83
onAudioInputStarted()?
optional
onAudioInputStarted: (payload
) =>void
OnAudioInputStarted gets called, whenever a new AudioInput was started.
Parameters
• payload: AudioInputPayload
Returns
void
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:105
onAudioInputStopped()?
optional
onAudioInputStopped: (payload
) =>void
OnAudioInputStopped gets called, whenever a AudioInput was stopped.
Parameters
• payload: AudioInputPayload
Returns
void
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:109
onAudioOutputStarted()?
optional
onAudioOutputStarted: (payload
) =>void
OnAudioOutputStarted gets called, whenever a new AudioOutput was started.
Parameters
• payload: AudioOutputPayload
Returns
void
Defined in
Odin/odin-typescript/lib/api/room/index.d.ts:113
onAudioOutputStopped()?
optional
onAudioOutputStopped: (payload
) =>void
OnAudioOutputStopped gets called, whenever a AudioOutput was stopped.
Parameters
• payload: AudioOutputPayload