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

NameTypeDescription
roomOdinRoomThe room to add the media to.
sampleRatenumberThe sample rate of the audio stream (between 8000 and 48000)
channelCountnumberThe number of channels of the audio stream (1 or 2)
optionsOdinAPMSettingsOptional configuration options for Odin Audio Processing Module (APM).

See also

OdinMedia