How to play audio in background with firefox os?

我怕爱的太早我们不能终老 提交于 2019-12-01 16:48:29

The code and permission block you have are correct and I can confirm it is working in Firefox OS 1.1. You can also do the whole thing in Javascript:

audio = new Audio();
audio.preload = 'none';
audio.mozAudioChannelType = 'content';

It's because the wifi is closed after screen shutdown (auto-lock)?

Are you using the dev version of gaia? Wifi is set to always connect in product version.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!