音频没有在Facebook应用程序中播放 [英] Audio is not playing in Facebook app

查看:126
本文介绍了音频没有在Facebook应用程序中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小的HTML5游戏与JavaScript和JQuery。每一件事情都可以正常工作,但应用程序启动时音频不会播放。



我已经使用音频标签播放声音。

 < 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆