Add Media To Room
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.
Important
The user must have joined the room before adding media. Use the Join Room node to join the room. Also, you cannot use the same media stream for multiple rooms at once, but you have to create a new one for each room.
Inputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Room | Room | The room to which the media will be added. |
Media | Media | 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. |