Our new developer documentation is now available. Please check it out!
On Media Added
Called whenever a peer has added a media (i.e. activated the microphone). Connect to a Bind to On Media Added delegate node to handle this event for the specified room. Will not be called for the local player.
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
Name | Type | Description |
---|---|---|
Delegate | delegate | Connect to a Bind to On Media Added delegate node to get this event triggered once a peer has added a media object. |
Outputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Peer Id | integer | The id of the peer that added the media. |
Media | Media Object Reference | An object reference to the media added to the room for the peer. Assign this media object to an Odin Synth Component for audio to be played in-game. |
Properties | Properties Object Reference | Properties of the media object. |
Room | Room Object Reference | The Room object reference for which the event was triggered. |