添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
活泼的泡面  ·  BalenaSound not ...·  1 月前    · 
骑白马的大熊猫  ·  计算机教学机房·  5 月前    · 
年轻有为的啄木鸟  ·  Spring property ...·  1 年前    · 
逃跑的墨镜  ·  PHP: md5 - Manual·  1 年前    · 
Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option. Learn More

I found out, that the getUserMedia Promise in Firefox only resolves, if the Tab is active or by clicking on the Tab Instance: (Firefox, 81.0)

navigator.mediaDevices.getUserMedia({ audio: true}).then(() => console.log("done"))

Otherwise, the Promise never resolves or rejects. Is this a bug or a feature, and where is this documented? Is there a media Config setting, to tell Firefox to allow getUserMedia Promise to resolve in non-active Tabs? Otherwise this looks like a bug for me...

I found out, that the getUserMedia Promise in Firefox only resolves, if the Tab is active or by clicking on the Tab Instance: (Firefox, 81.0) navigator.mediaDevices.getUserMedia({ audio: true}).then(() => console.log("done")) Otherwise, the Promise never resolves or rejects. Is this a bug or a feature, and where is this documented? Is there a media Config setting, to tell Firefox to allow getUserMedia Promise to resolve in non-active Tabs? Otherwise this looks like a bug for me...

Solution: "Firefox Autoplay"

about:preferences -> Security -> Autoplay

Audio Autoplay for background Tabs/Windows is not allowed due to the strict Media Policy. The Autoplay setting bypasses the Policy and allows audio to be played for non-active Tabs/Windows (Tabs/Windows in Background)

Edit (2020-12-01) After a little testing and investigation, I found out that playing Audio in non-focused Firefox Tabs/Window is possible with Autoplay. But unfortunately, it is still not possible to bypass the strict policy when it comes to WebRTC/SIP. The Promise stil doesn't resolve, even with Autoplay enabled for all Sites. Read this answer in context

Solution: "Firefox Autoplay"

about:preferences -> Security -> Autoplay

Audio Autoplay for background Tabs/Windows is not allowed due to the strict Media Policy. The Autoplay setting bypasses the Policy and allows audio to be played for non-active Tabs/Windows (Tabs/Windows in Background)

Edit (2020-12-01) After a little testing and investigation, I found out that playing Audio in non-focused Firefox Tabs/Window is possible with Autoplay. But unfortunately, it is still not possible to bypass the strict policy when it comes to WebRTC/SIP. The Promise stil doesn't resolve, even with Autoplay enabled for all Sites. about:preferences -> Security -> Autoplay Audio Autoplay for background Tabs/Windows is not allowed due to the strict Media Policy. The Autoplay setting bypasses the Policy and allows audio to be played for non-active Tabs/Windows (Tabs/Windows in Background) '''Edit (2020-12-01)''' After a little testing and investigation, I found out that playing Audio in non-focused Firefox Tabs/Window is possible with Autoplay. But unfortunately, it is still not possible to bypass the strict policy when it comes to WebRTC/SIP. The Promise stil doesn't resolve, even with Autoplay enabled for all Sites.