Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinRoom.createMedia

createMedia(mediaStream: MediaStream, audioSettings?: IOdinAudioSettings): Promise<OdinMedia>

Creates a new local media using the specified stream.

Parameters

NameTypeDescription
mediaStreamMediaStreamThe capture stream of the input device
audioSettingsIOdinAudioSettingsOptional audio settings like VAD or master volume used to initialize audio

Returns

TypeDescription
Promise<OdinMedia>