Properties:
Name | Type | Argument | Description |
---|---|---|---|
kind |
Track.Kind | "audio" |
|
track |
RemoteAudioTrack |
<nullable> |
unless you have subscribed to the RemoteAudioTrack, this property is null |
Fires:
Events
-
subscribed
-
Your LocalParticipant subscribed to the RemoteAudioTrack.
Parameters:
Name Type Description track
RemoteAudioTrack the RemoteAudioTrack that was subscribed to
-
subscriptionFailed
-
Your LocalParticipant failed to subscribe to the RemoteAudioTrack.
Parameters:
Name Type Description error
TwilioError the reason the RemoteAudioTrack could not be subscribed to
-
trackDisabled
-
The RemoteAudioTrack was disabled.
-
trackEnabled
-
The RemoteAudioTrack was enabled.
-
unsubscribed
-
Your LocalParticipant unsubscribed from the RemoteAudioTrack.
Parameters:
Name Type Description track
RemoteAudioTrack the RemoteAudioTrack that was unsubscribed from