Browse Source

Removes unused files.

j8
hristoterezov 10 years ago
parent
commit
fcf785f32c
5 changed files with 0 additions and 62 deletions
  1. 0
    1
      app.js
  2. 0
    8
      libs/modules/RTC.bundle.js
  3. 0
    32
      media_stream.js
  4. 0
    8
      modules/RTC/RTCUtils.js
  5. 0
    13
      tracking.js

+ 0
- 1
app.js View File

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

+ 0
- 8
libs/modules/RTC.bundle.js View File

@@ -773,10 +773,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
773 773
     var cb = function (stream) {
774 774
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
775 775
         self.handleLocalStream(stream);
776
-        trackUsage('localMedia', {
777
-            audio: stream.getAudioTracks().length,
778
-            video: stream.getVideoTracks().length
779
-        });
780 776
     };
781 777
     var self = this;
782 778
     this.getUserMediaWithConstraints(
@@ -789,10 +785,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
789 785
                 cb,
790 786
                 function (error) {
791 787
                     console.error('failed to obtain audio/video stream - stop', error);
792
-                    trackUsage('localMediaError', {
793
-                        media: error.media || 'video',
794
-                        name : error.name
795
-                    });
796 788
                     UI.messageHandler.showError("Error",
797 789
                             "Failed to obtain permissions to use the local microphone" +
798 790
                             "and/or camera.");

+ 0
- 32
media_stream.js View File

@@ -1,32 +0,0 @@
1
-/**
2
- * Provides a wrapper class for the MediaStream.
3
- * 
4
- * TODO : Add here the src from the video element and other related properties
5
- * and get rid of some of the mappings that we use throughout the UI.
6
- */
7
-var MediaStream = (function() {
8
-    /**
9
-     * Creates a MediaStream object for the given data, session id and ssrc.
10
-     *
11
-     * @param data the data object from which we obtain the stream,
12
-     * the peerjid, etc.
13
-     * @param sid the session id
14
-     * @param ssrc the ssrc corresponding to this MediaStream
15
-     *
16
-     * @constructor
17
-     */
18
-    function MediaStreamProto(data, sid, ssrc) {
19
-        this.stream = data.stream;
20
-        this.peerjid = data.peerjid;
21
-        this.ssrc = ssrc;
22
-        this.session = connection.jingle.sessions[sid];
23
-        this.type = (this.stream.getVideoTracks().length > 0)
24
-                    ? MediaStream.VIDEO_TYPE : MediaStream.AUDIO_TYPE;
25
-        this.muted = false;
26
-    }
27
-
28
-    return MediaStreamProto;
29
-})();
30
-
31
-MediaStream.VIDEO_TYPE = 'Video';
32
-MediaStream.AUDIO_TYPE = 'Audio';

+ 0
- 8
modules/RTC/RTCUtils.js View File

@@ -280,10 +280,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
280 280
     var cb = function (stream) {
281 281
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
282 282
         self.handleLocalStream(stream);
283
-        trackUsage('localMedia', {
284
-            audio: stream.getAudioTracks().length,
285
-            video: stream.getVideoTracks().length
286
-        });
287 283
     };
288 284
     var self = this;
289 285
     this.getUserMediaWithConstraints(
@@ -296,10 +292,6 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function() {
296 292
                 cb,
297 293
                 function (error) {
298 294
                     console.error('failed to obtain audio/video stream - stop', error);
299
-                    trackUsage('localMediaError', {
300
-                        media: error.media || 'video',
301
-                        name : error.name
302
-                    });
303 295
                     UI.messageHandler.showError("Error",
304 296
                             "Failed to obtain permissions to use the local microphone" +
305 297
                             "and/or camera.");

+ 0
- 13
tracking.js View File

@@ -1,13 +0,0 @@
1
-(function () {
2
-
3
-function trackUsage(eventname, obj) {
4
-    //console.log('track', eventname, obj);
5
-    // implement your own tracking mechanism here
6
-}
7
-if (typeof exports !== 'undefined') {
8
-    module.exports = trackUsage;
9
-} else {
10
-    window.trackUsage = trackUsage;
11
-}
12
-
13
-})();

Loading…
Cancel
Save