音频没有在Facebook应用程序中播放 [英] Audio is not playing in Facebook app
问题描述
我已经使用音频标签播放声音。
< audio id =backgroundMusicautoplay loop>
< source src =sounds / startTheme.mp3/>
< source src =sounds / startTheme.wav/>
< / audio>
所有浏览器中都存在此问题。
<有人可以帮忙还是给我一些工作呢?
非常感谢提前。
- 我认为音乐标签在Facebook应用程序不支持。
经过许多尝试,我得到这个工作。音频没有播放,因为Facebook只支持安全的内容。 (内容与ssl)。
当我生成验证的SSL证书时,它开始工作。在我使用自签名证书之前。
感谢大家的建议。
I have a small HTML5 game with Javascript and JQuery. Every thing is working fine but the audio is not playing when the application starts.
I have used "audio" tag to play the sound.
<audio id="backgroundMusic" autoplay loop>
<source src="sounds/startTheme.mp3" />
<source src="sounds/startTheme.wav" />
</audio>
This issue persists in all the browsers.
Can anybody please help or advice me some work around? Very thanks in advance.
P.S. - I think audio tag is not supported in facebook app.
After many tries I get this thing to work. The audio was not playing because Facebook only supports secured contents. (contents with ssl). When I generated a verified SSL certificate it started working. Before I was using a self signed certificate.
Thanks you everybody for your suggestions.
这篇关于音频没有在Facebook应用程序中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!