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

Your LocalParticipant failed to subscribe to the RemoteTrack.

Parameters:
Name Type Description
error TwilioError

the reason the RemoteTrack could not be subscribed to


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