我想和webrtc进行视频通话.我有两个流,一个是本地的,第二个是远程流.
在Chrome中,我将我的视频标签静音,以便不听到导致回声的声音.我的HTML标签就像;
<video style="position:absolute;right:5px;bottom:5px;display: inline;" class="localVideo" autoplay="autoplay"
muted="true"
src="mediastream:3ffffe01-da89-44d9-b9cf-454b11ec6a6a" height="25%" width="25%"></video>
Run Code Online (Sandbox Code Playgroud)
在Firefox中,muted ="true"属性不起作用,所以我听到了自己的声音.我尝试在其他主题中设置多种方式的静音...
var video = document.querySelector("#movie");
video.muted = true;
Run Code Online (Sandbox Code Playgroud)
这个代码片段与jquery的不同变体没有用.
然后我决定在视频标签中添加controls属性,以便观察Firefox控制按钮的工作原理.我已经看到Firefox控制器上的静音按钮也不起作用.
使用Windows 7 - 8.1,带有Yosemite的macOS的Firefox 35和Firefox ESR 31.5都会出现此问题.我通过webrtc库localStream获取媒体流.
这是一个已知问题,如果有,有什么解决方法可以解决这个问题吗?
谢谢.
https://jsfiddle.net/kaldenfi/rpmk93wm/3/
<div ng-app="myApp" ng-controller="testCtrl">
<section ng-if="url">
<video id="player1" playsinline autoplay loop muted volume="0.0">
<source ng-src="{{url | trusturl}}" type="video/mp4"> Your browser does not support the video tag.
</video>
</section>
</div>
Run Code Online (Sandbox Code Playgroud)
更新到chrome 64后,这不再使我的视频静音.如果我把视频带到ng-if和硬编码之外的网址就可以了
有解决方案吗