Class: RemoteTrackPublication

RemoteTrackPublication

A RemoteTrackPublication represents a RemoteTrack that has been published to a Room.


Properties:
Name Type Argument Description
isSubscribed boolean

whether the published RemoteTrack is subscribed to

isTrackEnabled boolean

whether the published RemoteTrack is enabled

kind Track.Kind

kind of the published RemoteTrack

track RemoteTrack <nullable>

Unless you have subscribed to the RemoteTrack, this property is null

Fires:

Events


subscribed

Your LocalParticipant subscribed to the RemoteTrack.

Parameters:
Name Type Description
track RemoteTrack

the RemoteTrack that was subscribed to


subscriptionFailed


trackDisabled

The RemoteTrack was disabled.


trackEnabled

The RemoteTrack was enabled.


unsubscribed

Your LocalParticipant unsubscribed from the RemoteTrack.

Parameters:
Name Type Description
track RemoteTrack

the RemoteTrack that was unsubscribed from