Skip to main content

On Media Active State Changed

On Media Active State Changed

Called whenever a peer's media changed its active state, either starting to transmit a signal or ending a currently active transmission. Connect to a Bind to On Media Active State Changed delegate node to handle this event for the specified room. Will not be called for the local player.

Inputs

NameTypeDescription
DelegatedelegateConnect to a Bind to On Media Active State Changed delegate node to get this event triggered every time a peer's media active state has changed.

Outputs

NameTypeDescription
Execexec
Peer IdintegerThe id of the peer that added the media.
MediaobjectAn object reference to the media that has changed its active state.
ActiveboolThe value indicates if the media state is changed to active (true), or if it has changed to not active (false) anymore.
RoomobjectThe Room object reference for which the event was triggered.