720全景 krpano 音乐控制 关闭暂停打开恢复

1、引入声音控件

在tour.xml加入导入插件代码

<plugin name="soundinterface"
        url="%SWFPATH%/plugins/soundinterface.swf"
        alturl="%SWFPATH%/plugins/soundinterface.js"
        rootpath=""
        preload="true"
        keep="true"
        />

在在tour.xml调用sound.xml文件

2、加入调用声音代码

一般声音
playsound(bggsnd, ‘%SWFPATH%/sound/music1.mp3’, 10);

方向声音
playsound3D(s1,music1.mp3, 0,0);

暂停声音:pausesound(bggsnd);

恢复声音:resumesound(bggsnd);

暂停/恢复声音:pausesoundtoggle(bggsnd);

停止声音:stopsound(s1);

停止所有声音:stopallsounds();

krpano官方地址:https://krpano.com/

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值