webrtc.interfaces.media_stream_track#
- class webrtc.interfaces.media_stream_track.MediaStreamTrack(native_obj=None)#
Bases:
webrtc.base.WebRTCObject
The MediaStreamTrack interface represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
- clone() webrtc.MediaStreamTrack #
Returns a duplicate of the
webrtc.MediaStreamTrack
.
- property enabled: bool#
A Boolean whose value of true if the track is enabled, that is allowed to render the media source stream; or false if it is disabled, that is not rendering the media source stream but silence and blackness. If the track has been disconnected, this value can be changed but has no more effect.
- Type
bool
- property id: str#
A unique identifier (GUID) for the track.
- Type
bool
- property kind: webrtc.MediaType#
Indicating type of media. Audio or video. It doesn’t change if the track is deassociated from its source.
- Type
- property muted: bool#
A value indicating whether the track is unable to provide media data due to a technical issue.
- Type
bool
- property readyState: webrtc.MediaStreamTrackState#
Alias for
ready_state
- property ready_state: webrtc.MediaStreamTrackState#
Returns an enumerated value giving the status of the track.
- stop()#
Stops playing the source associated to the track, both the source and the track are deassociated. The track state is set to ended.