浏览代码

Updates app.bundle.js.

j8
George Politis 10 年前
父节点
当前提交
b690f5d4a1
共有 2 个文件被更改,包括 11 次插入5 次删除
  1. 1
    1
      index.html
  2. 10
    4
      libs/app.bundle.js

+ 1
- 1
index.html 查看文件

19
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
19
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
20
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
20
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
21
     <script src="interface_config.js?v=5"></script>
21
     <script src="interface_config.js?v=5"></script>
22
-    <script src="libs/app.bundle.js?v=28"></script>
22
+    <script src="libs/app.bundle.js?v=29"></script>
23
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
23
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
24
     <link rel="stylesheet" href="css/font.css?v=6"/>
24
     <link rel="stylesheet" href="css/font.css?v=6"/>
25
     <link rel="stylesheet" href="css/toastr.css?v=1">
25
     <link rel="stylesheet" href="css/toastr.css?v=1">

+ 10
- 4
libs/app.bundle.js 查看文件

1007
             this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
1007
             this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
1008
             this.pc_constraints = {};
1008
             this.pc_constraints = {};
1009
             this.attachMediaStream =  function (element, stream) {
1009
             this.attachMediaStream =  function (element, stream) {
1010
-                console.log('Attaching', stream, ' to ', element);
1011
-                element[0].src = URL.createObjectURL(stream);
1010
+                //  srcObject is being standardized and FF will eventually
1011
+                //  support that unprefixed. FF also supports the
1012
+                //  "element.src = URL.createObjectURL(...)" combo, but that
1013
+                //  will be deprecated in favour of srcObject.
1014
+                //
1015
+                // https://groups.google.com/forum/#!topic/mozilla.dev.media/pKOiioXonJg
1016
+                // https://github.com/webrtc/samples/issues/302
1017
+                element[0].mozSrcObject = stream;
1012
                 element[0].play();
1018
                 element[0].play();
1013
             };
1019
             };
1014
             this.getStreamID =  function (stream) {
1020
             this.getStreamID =  function (stream) {
1020
                 return tracks[0].id.replace(/[\{,\}]/g,"");
1026
                 return tracks[0].id.replace(/[\{,\}]/g,"");
1021
             };
1027
             };
1022
             this.getVideoSrc = function (element) {
1028
             this.getVideoSrc = function (element) {
1023
-                return element.src;
1029
+                return element.mozSrcObject;
1024
             };
1030
             };
1025
             this.setVideoSrc = function (element, src) {
1031
             this.setVideoSrc = function (element, src) {
1026
-                element.src = src;
1032
+                element.mozSrcObject = src;
1027
             };
1033
             };
1028
             RTCSessionDescription = mozRTCSessionDescription;
1034
             RTCSessionDescription = mozRTCSessionDescription;
1029
             RTCIceCandidate = mozRTCIceCandidate;
1035
             RTCIceCandidate = mozRTCIceCandidate;

正在加载...
取消
保存