Greater Dunnellon Historical Society

cmp4播放器在谷歌浏览下播放opendrive等网盘MP3时没有声音的解决方法

  cmp4播放器播放opendrive等网盘MP3时在其它浏览器都正常,但在谷歌浏览下却没有声音!解决方法如下:

 

  1.如果是直接调用CMP4播放可以在配置里面加sound_sample这个参数,无需注入任何值就可以播放,例如:

 

<embed wmode="transparent" width="700" height="150" 

allowfullscreen="true" 

allowscriptaccess="always" src="http://dn-lxgx.qbox.me/bkbfq/cmp/cmp.swf?sound_sample&auto_play=0&amp;amp;

bgcolor=ffffff&amp;amp;

url=&amp;amp;lists=&amp;

plugins=http://dn-lxgx.qbox.me/bkbfq/cmp/plugins/krc.swf&amp;

lrc=http://dnlxgx.qbox.me/bkbfq/cmp/lrc/1.krc&amp;

src=https://mytiantang.opendrive.com/files/89147137_oY2fR/Un%20Ange%20Frappe%20A%20Ma%20Porte.mp3&amp;.swf"

type="application/x-shockwave-flash" name="cmp_gQp01q" />

 

  2.也可以直接在config.xml定义,例如:

 

 <cmp 

name = "音乐之声" 

link = "http://yyzscn.sourceforge.net/" 

description = "音乐之声"

logo = "{src:logo.png,xywh:[10R,10R,0,0]}"

 

skins = ""

plugins = "http://yyzscn.sourceforge.net/plug/cmp/plugins/autoskin.swf"

backgrounds = ""

lists = ""

 

src_handler = "" 

lrc_handler = ""

 

skin_id = ""

mixer_id = "10"

play_id = ""

auto_play = ""

list_delete = ""

sound_sample = " 0"

 

mixer_displace = "true"

mixer_src = "http://dn-lxgx.qbox.me/klok/plugins/mixer3d.swf" mixer_filter = "true"

/>

 

3.也可以在播放页面的HTML代码中的flashvars定义,例如:

   var flashvars = {

api : "cmp_loaded",

        plugins : "http://yyzscn.sourceforge.net/plug/cmp/plugins/autoskin.swf,http://yyzscn.sourceforge.net/krc.swf",

        skins : "[x5music:tempurl]play/05.zip,[x5music:tempurl]play/x.zip",

        sound_sample : " 0",

lists : "[x5music:lpid]"

};

Write a comment

Comments: 0