Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const MediaStream = require('@twilio/webrtc').MediaStream;
const Track = require('./');
/**
* A {@link MediaTrack} represents audio or video that can be sent to or
* received from a {@link Room}.
* @extends Track
* @property {Track.ID} id - This {@link Track}'s ID
* @property {boolean} isStarted - Whether or not the {@link MediaTrack} has
* started
* @property {boolean} isEnabled - Whether or not the {@link MediaTrack} is
* enabled (i.e., whether it is paused or muted)
* @property {Track.Kind} kind - The kind of the underlying
* MediaStreamTrack, "audio" or "video"
* @property {MediaStreamTrack} mediaStreamTrack - The underlying
* MediaStreamTrack
* @emits MediaTrack#disabled