OdinRoom.createMedia

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

Creates a new local media using the specified stream.

Parameters

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

Returns

TypeDescription
Promise<OdinMedia>