Przeglądaj źródła

Removes unused files.

j8
hristoterezov 10 lat temu
rodzic
commit
fcf785f32c
5 zmienionych plików z 0 dodań i 62 usunięć
  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 Wyświetl plik

460
                             }
460
                             }
461
                         }
461
                         }
462
                     });
462
                     });
463
-                    trackUsage('iceConnected', metadata);
464
                 }
463
                 }
465
             });
464
             });
466
         }
465
         }

+ 0
- 8
libs/modules/RTC.bundle.js Wyświetl plik

773
     var cb = function (stream) {
773
     var cb = function (stream) {
774
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
774
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
775
         self.handleLocalStream(stream);
775
         self.handleLocalStream(stream);
776
-        trackUsage('localMedia', {
777
-            audio: stream.getAudioTracks().length,
778
-            video: stream.getVideoTracks().length
779
-        });
780
     };
776
     };
781
     var self = this;
777
     var self = this;
782
     this.getUserMediaWithConstraints(
778
     this.getUserMediaWithConstraints(
789
                 cb,
785
                 cb,
790
                 function (error) {
786
                 function (error) {
791
                     console.error('failed to obtain audio/video stream - stop', error);
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
                     UI.messageHandler.showError("Error",
788
                     UI.messageHandler.showError("Error",
797
                             "Failed to obtain permissions to use the local microphone" +
789
                             "Failed to obtain permissions to use the local microphone" +
798
                             "and/or camera.");
790
                             "and/or camera.");

+ 0
- 32
media_stream.js Wyświetl plik

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 Wyświetl plik

280
     var cb = function (stream) {
280
     var cb = function (stream) {
281
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
281
         console.log('got', stream, stream.getAudioTracks().length, stream.getVideoTracks().length);
282
         self.handleLocalStream(stream);
282
         self.handleLocalStream(stream);
283
-        trackUsage('localMedia', {
284
-            audio: stream.getAudioTracks().length,
285
-            video: stream.getVideoTracks().length
286
-        });
287
     };
283
     };
288
     var self = this;
284
     var self = this;
289
     this.getUserMediaWithConstraints(
285
     this.getUserMediaWithConstraints(
296
                 cb,
292
                 cb,
297
                 function (error) {
293
                 function (error) {
298
                     console.error('failed to obtain audio/video stream - stop', error);
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
                     UI.messageHandler.showError("Error",
295
                     UI.messageHandler.showError("Error",
304
                             "Failed to obtain permissions to use the local microphone" +
296
                             "Failed to obtain permissions to use the local microphone" +
305
                             "and/or camera.");
297
                             "and/or camera.");

+ 0
- 13
tracking.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz