Our new developer documentation is now available. Please check it out!
OdinRoom.createMedia
On this page
createMedia(mediaStream: MediaStream, audioSettings?: IOdinAudioSettings): Promise<OdinMedia>
Creates a new local media using the specified stream.
Parameters
Name | Type | Description |
---|---|---|
mediaStream | MediaStream | The capture stream of the input device |
audioSettings | IOdinAudioSettings | Optional audio settings like VAD or master volume used to initialize audio |
Returns
Type | Description |
---|---|
Promise<OdinMedia> |