瀏覽代碼

Remove unused files

j8
hristoterezov 9 年之前
父節點
當前提交
ce43ce4cd8
共有 4 個檔案被更改,包括 0 行新增108 行删除
  1. 0
    47
      modules/DTMF/DTMF.js
  2. 0
    2
      modules/UI/avatar/Avatar.js
  3. 0
    6
      service/RTC/MediaStreamTypes.js
  4. 0
    53
      service/RTC/Resolutions.js

+ 0
- 47
modules/DTMF/DTMF.js 查看文件

@@ -1,47 +0,0 @@
1
-/* global APP */
2
-
3
-/**
4
- * A module for sending DTMF tones.
5
- */
6
-var DTMFSender;
7
-var initDtmfSender = function() {
8
-    // TODO: This needs to reset this if the peerconnection changes
9
-    // (e.g. the call is re-made)
10
-    if (DTMFSender)
11
-        return;
12
-
13
-    var localAudio = APP.RTC.localAudio;
14
-    if (localAudio && localAudio.getTracks().length > 0)
15
-    {
16
-        var peerconnection
17
-            = APP.xmpp.getConnection().jingle.activecall.peerconnection;
18
-        if (peerconnection) {
19
-            DTMFSender =
20
-                peerconnection.peerconnection
21
-                    .createDTMFSender(localAudio.getTracks()[0]);
22
-            console.log("Initialized DTMFSender");
23
-        }
24
-        else {
25
-            console.log("Failed to initialize DTMFSender: no PeerConnection.");
26
-        }
27
-    }
28
-    else {
29
-        console.log("Failed to initialize DTMFSender: no audio track.");
30
-    }
31
-};
32
-
33
-var DTMF = {
34
-    sendTones: function (tones, duration, pause) {
35
-        if (!DTMFSender)
36
-            initDtmfSender();
37
-
38
-        if (DTMFSender){
39
-            DTMFSender.insertDTMF(tones,
40
-                                  (duration || 200),
41
-                                  (pause || 200));
42
-        }
43
-    }
44
-};
45
-
46
-module.exports = DTMF;
47
-

+ 0
- 2
modules/UI/avatar/Avatar.js 查看文件

@@ -1,6 +1,4 @@
1 1
 /* global Strophe, APP, MD5, config */
2
-var Settings = require("../../settings/Settings");
3
-
4 2
 var users = {};
5 3
 
6 4
 var Avatar = {

+ 0
- 6
service/RTC/MediaStreamTypes.js 查看文件

@@ -1,6 +0,0 @@
1
-var MediaStreamType = {
2
-    VIDEO_TYPE: "video",
3
-
4
-    AUDIO_TYPE: "audio"
5
-};
6
-module.exports = MediaStreamType;

+ 0
- 53
service/RTC/Resolutions.js 查看文件

@@ -1,53 +0,0 @@
1
-var Resolutions = {
2
-    "1080": {
3
-        width: 1920,
4
-        height: 1080,
5
-        order: 7
6
-    },
7
-    "fullhd": {
8
-        width: 1920,
9
-        height: 1080,
10
-        order: 7
11
-    },
12
-    "720": {
13
-        width: 1280,
14
-        height: 720,
15
-        order: 6
16
-    },
17
-    "hd": {
18
-        width: 1280,
19
-        height: 720,
20
-        order: 6
21
-    },
22
-    "960": {
23
-        width: 960,
24
-        height: 720,
25
-        order: 5
26
-    },
27
-    "640": {
28
-        width: 640,
29
-        height: 480,
30
-        order: 4
31
-    },
32
-    "vga": {
33
-        width: 640,
34
-        height: 480,
35
-        order: 4
36
-    },
37
-    "360": {
38
-        width: 640,
39
-        height: 360,
40
-        order: 3
41
-    },
42
-    "320": {
43
-        width: 320,
44
-        height: 240,
45
-        order: 2
46
-    },
47
-    "180": {
48
-        width: 320,
49
-        height: 180,
50
-        order: 1
51
-    }
52
-};
53
-module.exports = Resolutions;

Loading…
取消
儲存