krpano 添加背景音乐?
emer 发布于 2017-9-19 20:34 3076 次阅读
scene外面:
<action name="bgsnd_action" autorun="onstart"> playsound(bgsnd, 'http://fs.open.kugou.com/299ee8fc00a480e899d180bb715a6231/59c10d94/G009/M0A/09/05/qYYBAFUJvZiAXUb2AD6652iMRH8210.mp3', 0); </action> <plugin name="soundinterface" url.flash="%SWFPATH%/plugins/soundinterface.swf" url.html5="%SWFPATH%/plugins/soundinterface.js" rootpath="" preload="true" keep="true" />
和添加播放按钮(在skin.xml的skin_btn_vr后面):
<layer name="skin_btn_sound" style="skin_base|skin_glow" crop="64|704|64|64" align="right" ox="0" x="130" y="0" scale="0.5" onclick="pausesoundtoggle(bgsnd);switch(crop,64|704|40|64,64|704|64|64);switch(alpha,1,0.25);switch(ox,0,-12)" />