1.引入KRpano soundinterface插件
<plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
alturl="%SWFPATH%/plugins/soundinterface.js"
rootpath="%SWFPATH%/sound/ChinaP.mp3"
preload="true"
keep="true"
volume="0.6"
/>
2.events加入音乐文件
<!-- start playing the sound -->
<events name="currentpano"
keep="true"
onnewpano="playsound(bggsnd, '%SWFPATH%/sound/ChinaP.mp3', 0);"
onremovepano="stopsound(bgsnd);"
/>
3.加入音乐控制按钮