AbstractReadonlykindOptionalsidcurrent receive bits per second
indicates current state of stream, it'll indicate paused if the track
has been paused by congestion controller
creates a new HTMLAudioElement or HTMLVideoElement, attaches to it, and returns it
attaches track to an existing HTMLAudioElement or HTMLVideoElement
Detaches from all attached elements
Detach from a single element
DeviceID of the device that is currently being used for this track
Returns the processor currently set on this track, or undefined if there is none. A track
that was stopped by an unpublish or a disconnect has none. See TrackProcessor.
Gets the RTCStatsReport for the LocalTrack's underlying RTCRtpSender See https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport
Promise
pauses publishing to the server without disabling the local MediaStreamTrack this is used to display a user's own video locally while pausing publishing to the server. this API is unsupported on Safari < 12 due to a bug
Optionaloptions: ReplaceTrackOptionsOptionaluserProvidedTrack: booleanAbstractrestartOptionalconstraints: unknownSets a processor on this track. See https://github.com/livekit/track-processors-js for example usage
The processor lives on the track, so stopping the track destroys it. Unpublishing and
disconnecting both stop the track by default, which means a processor has to be set again on
the track published after a reconnect. See TrackProcessor for the full lifecycle,
including what stopLocalTrackOnUnpublish: false changes.
AbstractstartOptionalsignalClient: SignalClientStops the track processor See https://github.com/livekit/track-processors-js for example usage
Only needed to remove a processor from a track that stays published. Unpublishing or disconnecting already destroys it. See TrackProcessor.
sid is set after track is published to server, or if it's a remote track