Skip to main content

odin_room_add_media

Adds a specified

OdinMediaStreamHandle

to the room. Please note, that this can only be done once on a given media. Trying to do it more than once will return an error on subsequent calls to this function.

Declaration
OdinReturnCode odin_room_add_media(OdinRoomHandle room, OdinMediaStreamHandle media);

Parameters

room

Handle of the room (

OdinRoomHandle

) to add the media stream to.

Declaration
OdinRoomHandle room;

media

Handle of the media stream (

OdinMediaStreamHandle

) to add to the room.

Declaration
OdinMediaStreamHandle media;

Returns

A return code indicating success or failure. See

OdinReturnCode

for more information.

Return Type
OdinReturnCode