krpano 教程 - 场景中加入声音

来源:互联网 发布:seo技术 编辑:程序博客网 时间:2024/05/21 10:29
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文件<include url="%SWFPATH%/sound/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();


免费全景教程资料下载:http://krpano.cc/teach

原创资料,转载请注明出处!





0 0
原创粉丝点击