function JitsiTrack(rtc, stream, track, streamInactiveHandler, trackMediaType,
                    videoType, ssrc)
{
    /**
     * Array with the HTML elements that are displaying the streams.
     * @type {Array}
     */
    this.containers = [];
    this.rtc = rtc;
    this.stream = stream;
    this.ssrc = ssrc;
    this.eventEmitter = new EventEmitter();
    this.audioLevel = -1;
    this.type = trackMediaType;
    this.track = track;
    this.videoType = videoType;
    if(stream) {
        if (RTCBrowserType.isFirefox()) {
            implementOnEndedHandling(this);
        }
        addMediaStreamInactiveHandler(stream, streamInactiveHandler);
    }
}
/**
 * Represents a single media track (either audio or video).
 * @constructor
 * @param rtc the rtc instance
 * @param stream the WebRTC MediaStream instance
 * @param track the WebRTC MediaStreamTrack instance, must be part of
 * the given <tt>stream</tt>.
 * @param streamInactiveHandler the function that will handle
 *        onended/oninactive events of the stream.
 * @param trackMediaType the media type of the JitsiTrack
 * @param videoType the VideoType for this track if any
 * @param ssrc the SSRC of this track if known
 */
Represents a single media track (either audio or video).
@constructor
@param rtc the rtc instance
@param stream the WebRTC MediaStream instance
@param track the WebRTC MediaStreamTrack instance, must be part of
the given stream.
@param streamInactiveHandler the function that will handle
onended/oninactive events of the stream.
@param trackMediaType the media type of the JitsiTrack
@param videoType the VideoType for this track if any
@param ssrc the SSRC of this track if known
Represents a single media track ( either audio or video ) . @constructor @param rtc the rtc instance @param stream the WebRTC MediaStream instance @param track the WebRTC MediaStreamTrack instance must be part of the given stream . @param streamInactiveHandler the function that will handle onended / oninactive events of the stream . @param trackMediaType the media type of the JitsiTrack @param videoType the VideoType for this track if any @param ssrc the SSRC of this track if known
function JitsiTrack(rtc, stream, track, streamInactiveHandler, trackMediaType,
                    videoType, ssrc)
{
    this.containers = [];
    this.rtc = rtc;
    this.stream = stream;
    this.ssrc = ssrc;
    this.eventEmitter = new EventEmitter();
    this.audioLevel = -1;
    this.type = trackMediaType;
    this.track = track;
    this.videoType = videoType;
    if(stream) {
        if (RTCBrowserType.isFirefox()) {
            implementOnEndedHandling(this);
        }
        addMediaStreamInactiveHandler(stream, streamInactiveHandler);
    }
}
function JitsiTrack ( rtc , stream , track , streamInactiveHandler , trackMediaType , videoType , ssrc ) { this . containers = [ ] ; this . rtc = rtc ; this . stream = stream ; this . ssrc = ssrc ; this . eventEmitter = new EventEmitter ( ) ; this . audioLevel = - 1 ; this . type = trackMediaType ; this . track = track ; this . videoType = videoType ; if ( stream ) { if ( RTCBrowserType . isFirefox ( ) ) { implementOnEndedHandling ( this ) ; } addMediaStreamInactiveHandler ( stream , streamInactiveHandler ) ; } }
Represents a single media track (either audio or video).
Represents a single media track ( either audio or video ) .
/**
     * Array with the HTML elements that are displaying the streams.
     * @type {Array}
     */