Adds a previously generated media object to the room. Once this is done, the users microphone input will be sent to other users so they can hear the audio.
Name | Type | Description |
---|
Exec | exec | |
Room | object | The room to which the media will be added. |
Media | object | The media which should be added. Construct Local Media can be used to create a media object. |
On Error | delegate | Delegate to handle errors while adding a media to a room. |
On Success | delegate | Called when the media has been successfully added to the room. See On Media Added Success event for details. |
Outputs
Name | Type | Description |
---|
Exec | exec | |
On Response | exec | Called when the gateway has returned its response. Use the success output to understand if anything went fine. |
Success | boolean | true if the media has been successfully joined. |