Gets the HTML media elements attached to the track.
An array of HTMLMediaElement instances.
Gets the codec used by the track.
The codec as an FFCVideoCodec, or undefined if not set.
Gets the media constraints applied to the track.
The media constraints as MediaTrackConstraints.
Gets the current bitrate of the track.
The current bitrate in bits per second.
Gets the dimensions of the track (e.g., width and height).
The dimensions as FFCTrack.Dimensions, or undefined if not available.
Gets the unique identifier of the track.
The track ID as a string.
Indicates whether the track is local.
true because this is a local track.
Checks if the track is muted.
true if the track is muted, otherwise false.
Checks if the upstream of the track is paused.
true if the upstream is paused, otherwise false.
Checks if the track was provided by the user.
true if the track is user-provided, otherwise false.
Sets the media stream associated with the track.
The MediaStream instance, or undefined to clear it.
Gets the MediaStreamTrack associated with the track.
The MediaStreamTrack instance.
Gets the streamd id (SID) of the track.
The track SID, or undefined if not set.
Sets the source of the track (e.g., camera, microphone).
The source of the track as FFCTrack.Source.
Gets the stream state of the track (e.g., active, paused).
The stream state as FFCTrack.StreamState.
Creates a new HTMLAudioElement or HTMLVideoElement, attaches to it, and returns it.
The attached HTMLMediaElement.
Attaches track to an existing HTMLAudioElement or HTMLVideoElement
(Optional) The HTMLMediaElement to attach the track to.
The attached HTMLMediaElement.
Detaches from all attached elements
The detached HTMLMediaElement or an array of detached elements.
Detach from a single element.
(Optional) The HTMLMediaElement to detach the track from.
The detached HTMLMediaElement or an array of detached elements.
Gets the device ID of the track.
Whether to normalize the device ID.
A promise that resolves to the device ID as a string, or undefined if not available.
Gets the processor currently applied to the track.
The processor as an FFCTrackProcessor, or undefined if no processor is applied.
Retrieves the RTC stats report for the track.
A promise that resolves to an RTCStatsReport, or undefined if not available.
Gets the settings of the source track.
The settings as MediaTrackSettings.
Mutes the track.
A promise that resolves to the current FFCLocalTrack instance.
Pauses the upstream of the track.
A promise that resolves when the upstream is paused.
Optionaloptions: FFCReplaceTrackOptionsOptionaluserProvidedTrack: booleanRestarts the track with new constraints.
Optionalconstraints: unknownThe new constraints to apply.
A promise that resolves when the track is restarted.
Resumes the upstream of the track.
A promise that resolves when the upstream is resumed.
Sets the device ID for the track.
The device ID to set.
A promise that resolves to true if the device ID was set successfully, otherwise false.
Sets a processor for the track.
The processor to set as an FFCTrackProcessor.
Whether to show the processed stream locally.
A promise that resolves when the processor is set.
Stops the track.
Stops the processor applied to the track.
A promise that resolves when the processor is stopped.
Unmutes the track.
A promise that resolves to the current FFCLocalTrack instance.
Waits for the dimensions of the track to be available.
The timeout in milliseconds (default is 1000ms).
A promise that resolves to the dimensions as FFCTrack.Dimensions.
The
FFCLocalTrackclass represents a local media track in the FlipFlopCloud SDK. It extends theFFCTrackclass and provides additional functionality specific to local tracks.