Our new developer documentation is now available. Please check it out!
OdinMedia.constructor
var odinmedia = new OdinMedia(room: OdinRoom, sampleRate: number, channelCount: number, options?: OdinAPMSettings)
Creates a new instance of a media object. Don’t create OdinMedia directly, use createAudioStream
from OdinRoom instead.
Parameters
Name | Type | Description |
---|---|---|
room | OdinRoom | The room to add the media to. |
sampleRate | number | The sample rate of the audio stream (between 8000 and 48000) |
channelCount | number | The number of channels of the audio stream (1 or 2) |
options | OdinAPMSettings | Optional configuration options for Odin Audio Processing Module (APM). |