On Media Added

On Media Added

Called whenever a peer has added a media. Connect a Bind to On Media Added delegate node to handle this event for the specified room.

Tip

There might be issues if you create the event manually. Instead, drop a Bind to On Media Added node into the blueprint, drag out from Event until you see the red line. Then release the mouse button and in the drop down choose Add Custom Event. Unreal will create the correct event for you then.

Inputs

NameTypeDescription
DelegatedelegateBind to a Bind to On Media Added delegate node to get this event triggered once a peer has added a media object.

Outputs

NameTypeDescription
Execexec
Peer IdintegerThe id of the peer that joined the room. This is the self peer id, i.e. the peer id of the local player.
MediaMedia Object ReferenceAn object reference to the media added to the room for the peer. You need to assign that media object to an Odin Synth Component so that audio will be sent to the output channel (i.e. speakers).
PropertiesProperties Object ReferenceProperties of the media object
RoomRoom Object ReferenceThe Room object reference that the user just joined.