Removes unused files.
This commit is contained in:
parent
0508628871
commit
fcf785f32c
1
app.js
1
app.js
|
@ -460,7 +460,6 @@ $(document).bind('iceconnectionstatechange.jingle', function (event, sid, sessio
|
|||
}
|
||||
}
|
||||
});
|
||||
trackUsage('iceConnected', metadata);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -773,10 +773,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
|
|||
var cb = function (stream) {
|
||||
console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
|
||||
self.handleLocalStream(stream);
|
||||
trackUsage('localMedia', {
|
||||
audio: stream.getAudioTracks().length,
|
||||
video: stream.getVideoTracks().length
|
||||
});
|
||||
};
|
||||
var self = this;
|
||||
this.getUserMediaWithConstraints(
|
||||
|
@ -789,10 +785,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
|
|||
cb,
|
||||
function (error) {
|
||||
console.error('failed to obtain audio/video stream - stop', error);
|
||||
trackUsage('localMediaError', {
|
||||
media: error.media || 'video',
|
||||
name : error.name
|
||||
});
|
||||
UI.messageHandler.showError("Error",
|
||||
"Failed to obtain permissions to use the local microphone" +
|
||||
"and/or camera.");
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
/**
|
||||
* Provides a wrapper class for the MediaStream.
|
||||
*
|
||||
* TODO : Add here the src from the video element and other related properties
|
||||
* and get rid of some of the mappings that we use throughout the UI.
|
||||
*/
|
||||
var MediaStream = (function() {
|
||||
/**
|
||||
* Creates a MediaStream object for the given data, session id and ssrc.
|
||||
*
|
||||
* @param data the data object from which we obtain the stream,
|
||||
* the peerjid, etc.
|
||||
* @param sid the session id
|
||||
* @param ssrc the ssrc corresponding to this MediaStream
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function MediaStreamProto(data, sid, ssrc) {
|
||||
this.stream = data.stream;
|
||||
this.peerjid = data.peerjid;
|
||||
this.ssrc = ssrc;
|
||||
this.session = connection.jingle.sessions[sid];
|
||||
this.type = (this.stream.getVideoTracks().length > 0)
|
||||
? MediaStream.VIDEO_TYPE : MediaStream.AUDIO_TYPE;
|
||||
this.muted = false;
|
||||
}
|
||||
|
||||
return MediaStreamProto;
|
||||
})();
|
||||
|
||||
MediaStream.VIDEO_TYPE = 'Video';
|
||||
MediaStream.AUDIO_TYPE = 'Audio';
|
|
@ -280,10 +280,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
|
|||
var cb = function (stream) {
|
||||
console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
|
||||
self.handleLocalStream(stream);
|
||||
trackUsage('localMedia', {
|
||||
audio: stream.getAudioTracks().length,
|
||||
video: stream.getVideoTracks().length
|
||||
});
|
||||
};
|
||||
var self = this;
|
||||
this.getUserMediaWithConstraints(
|
||||
|
@ -296,10 +292,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
|
|||
cb,
|
||||
function (error) {
|
||||
console.error('failed to obtain audio/video stream - stop', error);
|
||||
trackUsage('localMediaError', {
|
||||
media: error.media || 'video',
|
||||
name : error.name
|
||||
});
|
||||
UI.messageHandler.showError("Error",
|
||||
"Failed to obtain permissions to use the local microphone" +
|
||||
"and/or camera.");
|
||||
|
|
13
tracking.js
13
tracking.js
|
@ -1,13 +0,0 @@
|
|||
(function () {
|
||||
|
||||
function trackUsage(eventname, obj) {
|
||||
//console.log('track', eventname, obj);
|
||||
// implement your own tracking mechanism here
|
||||
}
|
||||
if (typeof exports !== 'undefined') {
|
||||
module.exports = trackUsage;
|
||||
} else {
|
||||
window.trackUsage = trackUsage;
|
||||
}
|
||||
|
||||
})();
|
Loading…
Reference in New Issue