RemoteTrackPublication
Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:11
Extends
Section titled “Extends”Properties
Section titled “Properties”dimensions?
Section titled “dimensions?”dimensions?: object;Defined in: client-sdk-js/src/participant/Participant.ts:52
Original video dimensions from the publisher.
height
Section titled “height”height: number;width: number;Inherited from
Section titled “Inherited from”info?: TrackInfo;Defined in: client-sdk-js/src/participant/Participant.ts:43
Inherited from
Section titled “Inherited from”kind: string;Defined in: client-sdk-js/src/participant/Participant.ts:39
Inherited from
Section titled “Inherited from”mimeType?
Section titled “mimeType?”mimeType?: string;Defined in: client-sdk-js/src/participant/Participant.ts:46
MIME type of the track (e.g. video/VP8, audio/opus).
Inherited from
Section titled “Inherited from”muted: boolean;Defined in: client-sdk-js/src/participant/Participant.ts:42
Inherited from
Section titled “Inherited from”simulcasted?
Section titled “simulcasted?”simulcasted?: boolean;Defined in: client-sdk-js/src/participant/Participant.ts:49
Whether the track was published with simulcast.
Inherited from
Section titled “Inherited from”source
Section titled “source”source: TrackSource;Defined in: client-sdk-js/src/participant/Participant.ts:40
Inherited from
Section titled “Inherited from”streamState
Section titled “streamState”streamState: StreamState = StreamState.Active;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:12
track?
Section titled “track?”track?: Track;Defined in: client-sdk-js/src/participant/Participant.ts:41
Inherited from
Section titled “Inherited from”trackName
Section titled “trackName”trackName: string;Defined in: client-sdk-js/src/participant/Participant.ts:38
Inherited from
Section titled “Inherited from”trackSid
Section titled “trackSid”trackSid: string;Defined in: client-sdk-js/src/participant/Participant.ts:37
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”audioTrack
Section titled “audioTrack”Get Signature
Section titled “Get Signature”get audioTrack(): | LocalAudioTrack | RemoteAudioTrack | undefined;Defined in: client-sdk-js/src/participant/Participant.ts:94
Type-safe audio track getter. Returns undefined if the track is video.
Returns
Section titled “Returns”| LocalAudioTrack
| RemoteAudioTrack
| undefined
Inherited from
Section titled “Inherited from”isDesired
Section titled “isDesired”Get Signature
Section titled “Get Signature”get isDesired(): boolean;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:59
Returns true if the client wants to subscribe to this track.
Returns
Section titled “Returns”boolean
isEnabled
Section titled “isEnabled”Get Signature
Section titled “Get Signature”get isEnabled(): boolean;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:76
Whether the server is enabled to send data for this track.
Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”isLocal
Section titled “isLocal”Get Signature
Section titled “Get Signature”get isLocal(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:110
Whether this publication belongs to the local participant.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isMuted
Section titled “isMuted”Get Signature
Section titled “Get Signature”get isMuted(): boolean;Defined in: client-sdk-js/src/participant/Participant.ts:89
Whether the track is muted.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isSubscribed
Section titled “isSubscribed”Get Signature
Section titled “Get Signature”get isSubscribed(): boolean;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:53
Whether this track is currently subscribed.
Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”subscriptionStatus
Section titled “subscriptionStatus”Get Signature
Section titled “Get Signature”get subscriptionStatus(): SubscriptionStatus;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:64
Current subscription status.
Returns
Section titled “Returns”videoQuality
Section titled “videoQuality”Get Signature
Section titled “Get Signature”get videoQuality(): VideoQuality | undefined;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:71
The currently requested video quality.
Returns
Section titled “Returns”VideoQuality | undefined
videoTrack
Section titled “videoTrack”Get Signature
Section titled “Get Signature”get videoTrack(): | LocalVideoTrack | RemoteVideoTrack | undefined;Defined in: client-sdk-js/src/participant/Participant.ts:102
Type-safe video track getter. Returns undefined if the track is audio.
Returns
Section titled “Returns”| LocalVideoTrack
| RemoteVideoTrack
| undefined
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”setEnabled()
Section titled “setEnabled()”setEnabled(enabled): void;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:84
Enable or disable the server from sending data for this track. Useful when a track is off-screen.
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”void
setSubscribed()
Section titled “setSubscribed()”setSubscribed(subscribed): void;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:110
Control whether the subscription for this track is desired.
When set to false, the server will stop sending media for this track.
Parameters
Section titled “Parameters”subscribed
Section titled “subscribed”boolean
Returns
Section titled “Returns”void
setVideoDimensions()
Section titled “setVideoDimensions()”setVideoDimensions(dimensions): void;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:150
Explicitly set the desired video dimensions for this track. Maps to spatialLayer using TrackInfo width/height as the high layer and typical simulcast factors (1/2, 1/4) when layer metadata is not on the wire.
Parameters
Section titled “Parameters”dimensions
Section titled “dimensions”height
Section titled “height”number
number
Returns
Section titled “Returns”void
setVideoFPS()
Section titled “setVideoFPS()”setVideoFPS(fps): void;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:167
Set the desired video FPS for this subscription. In simulcast and SVC scenarios, fps controls the temporal layer.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
setVideoQuality()
Section titled “setVideoQuality()”setVideoQuality(quality): void;Defined in: client-sdk-js/src/participant/RemoteTrackPublication.ts:138
Set the preferred video quality for this subscription. Only applicable to video tracks.
Parameters
Section titled “Parameters”quality
Section titled “quality”Returns
Section titled “Returns”void