function JitsiLocalTrack(stream, track, mediaType, videoType, resolution,
                         deviceId) {
    JitsiTrack.call(this,
        null /* RTC */, stream, track,
        function () {
            if(!this.dontFireRemoveEvent)
                this.eventEmitter.emit(
                    JitsiTrackEvents.LOCAL_TRACK_STOPPED);
            this.dontFireRemoveEvent = false;
        }.bind(this) /* inactiveHandler */,
        mediaType, videoType, null /* ssrc */);
    this.dontFireRemoveEvent = false;
    this.resolution = resolution;
    this.deviceId = deviceId;
    this.startMuted = false;
    this.disposed = false;
    //FIXME: This dependacy is not necessary.
    this.conference = null;
    this.initialMSID = this.getMSID();
    this.inMuteOrUnmuteProgress = false;
}
/**
 * Represents a single media track(either audio or video).
 * One <tt>JitsiLocalTrack</tt> corresponds to one WebRTC MediaStreamTrack.
 * @param stream WebRTC MediaStream, parent of the track
 * @param track underlying WebRTC MediaStreamTrack for new JitsiRemoteTrack
 * @param mediaType the MediaType of the JitsiRemoteTrack
 * @param videoType the VideoType of the JitsiRemoteTrack
 * @param resolution the video resoultion if it's a video track
 * @param deviceId the ID of the local device for this track
 * @constructor
 */
Represents a single media track(either audio or video).
Represents a single media track ( either audio or video ) .
function JitsiLocalTrack(stream, track, mediaType, videoType, resolution,
                         deviceId) {
    JitsiTrack.call(this,
        null , stream, track,
        function () {
            if(!this.dontFireRemoveEvent)
                this.eventEmitter.emit(
                    JitsiTrackEvents.LOCAL_TRACK_STOPPED);
            this.dontFireRemoveEvent = false;
        }.bind(this) ,
        mediaType, videoType, null );
    this.dontFireRemoveEvent = false;
    this.resolution = resolution;
    this.deviceId = deviceId;
    this.startMuted = false;
    this.disposed = false;
    this.conference = null;
    this.initialMSID = this.getMSID();
    this.inMuteOrUnmuteProgress = false;
}
function JitsiLocalTrack ( stream , track , mediaType , videoType , resolution , deviceId ) { JitsiTrack . call ( this , null , stream , track , function ( ) { if ( ! this . dontFireRemoveEvent ) this . eventEmitter . emit ( JitsiTrackEvents . LOCAL_TRACK_STOPPED ) ; this . dontFireRemoveEvent = false ; } . bind ( this ) , mediaType , videoType , null ) ; this . dontFireRemoveEvent = false ; this . resolution = resolution ; this . deviceId = deviceId ; this . startMuted = false ; this . disposed = false ; this . conference = null ; this . initialMSID = this . getMSID ( ) ; this . inMuteOrUnmuteProgress = false ; }
Represents a single media track(either audio or video).
Represents a single media track ( either audio or video ) .
/* RTC */ /* inactiveHandler */ /* ssrc */ //FIXME: This dependacy is not necessary.