我正在尝试聊天声音来自android,但它无法正常工作但是相同的代码在PC中工作正常。
当我在移动浏览器中打开时,聊天通知声音不会出现,但是当我们使用pc
时会出现同样的情况 $jn(window).load(function() {
$jn(document).ready(function() {
//$jn('#chatboxhead'+id).css('background-image','url('+FreiChat.make_url(freidefines.newtopimg)+')');
soundManager.onready(function()
{
if (soundManager.supported() && Get_Cookie('frei_sound') === "on")
{
try {
mobile.sound = soundManager.createSound({
id: 'mobile_beep',
url: freidefines.GEN.url + "client/jquery/img/newmsg.mp3"
});
mobile.can_play_sound = true;
} catch (e) {
FreiChat.buglog("info", "SoundManager Error: " + e);
}
}
else
{
FreiChat.buglog("info", "SoundManager does not support your system");
}
});