ソースを参照

Enables the screen capture on firefox.

master
Boris Grozev 9年前
コミット
f7ba684cf6
2個のファイルの変更8行の追加0行の削除
  1. 6
    0
      modules/RTC/RTCUtils.js
  2. 2
    0
      modules/desktopsharing/desktopsharing.js

+ 6
- 0
modules/RTC/RTCUtils.js ファイルの表示

93
                     }
93
                     }
94
                 ]
94
                 ]
95
             };
95
             };
96
+        } else if (RTCBrowserType.isFirefox()) {
97
+            constraints.video = {
98
+                mozMediaSource: "window",
99
+                mediaSource: "window"
100
+            };
101
+
96
         } else {
102
         } else {
97
             console.error(
103
             console.error(
98
                 "'screen' WebRTC media source is supported only in Chrome" +
104
                 "'screen' WebRTC media source is supported only in Chrome" +

+ 2
- 0
modules/desktopsharing/desktopsharing.js ファイルの表示

235
             obtainDesktopStream = obtainWebRTCScreen;
235
             obtainDesktopStream = obtainWebRTCScreen;
236
             console.info("Using Chrome WebRTC for desktop sharing");
236
             console.info("Using Chrome WebRTC for desktop sharing");
237
         }
237
         }
238
+    } else if (RTCBrowserType.isFirefox()) {
239
+        obtainDesktopStream = obtainWebRTCScreen;
238
     }
240
     }
239
 
241
 
240
     if (!obtainDesktopStream) {
242
     if (!obtainDesktopStream) {

読み込み中…
キャンセル
保存