Removes unused files.

This commit is contained in:
hristoterezov 2015-01-09 16:18:03 +02:00
parent 0508628871
commit fcf785f32c
5 changed files with 0 additions and 62 deletions

1
app.js
View File

@ -460,7 +460,6 @@ $(document).bind('iceconnectionstatechange.jingle', function (event, sid, sessio
} }
} }
}); });
trackUsage('iceConnected', metadata);
} }
}); });
} }

View File

@ -773,10 +773,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
var cb = function (stream) { var cb = function (stream) {
console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length); console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
self.handleLocalStream(stream); self.handleLocalStream(stream);
trackUsage('localMedia', {
audio: stream.getAudioTracks().length,
video: stream.getVideoTracks().length
});
}; };
var self = this; var self = this;
this.getUserMediaWithConstraints( this.getUserMediaWithConstraints(
@ -789,10 +785,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
cb, cb,
function (error) { function (error) {
console.error('failed to obtain audio/video stream - stop', error); console.error('failed to obtain audio/video stream - stop', error);
trackUsage('localMediaError', {
media: error.media || 'video',
name : error.name
});
UI.messageHandler.showError("Error", UI.messageHandler.showError("Error",
"Failed to obtain permissions to use the local microphone" + "Failed to obtain permissions to use the local microphone" +
"and/or camera."); "and/or camera.");

View File

@ -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';

View File

@ -280,10 +280,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
var cb = function (stream) { var cb = function (stream) {
console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length); console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
self.handleLocalStream(stream); self.handleLocalStream(stream);
trackUsage('localMedia', {
audio: stream.getAudioTracks().length,
video: stream.getVideoTracks().length
});
}; };
var self = this; var self = this;
this.getUserMediaWithConstraints( this.getUserMediaWithConstraints(
@ -296,10 +292,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
cb, cb,
function (error) { function (error) {
console.error('failed to obtain audio/video stream - stop', error); console.error('failed to obtain audio/video stream - stop', error);
trackUsage('localMediaError', {
media: error.media || 'video',
name : error.name
});
UI.messageHandler.showError("Error", UI.messageHandler.showError("Error",
"Failed to obtain permissions to use the local microphone" + "Failed to obtain permissions to use the local microphone" +
"and/or camera."); "and/or camera.");

View File

@ -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;
}
})();