Advertisement

krpano 添加视频和音频热点

阅读量:

背景音乐播放功能的实现:

1、引入相关插件

复制代码
    <plugin name="soundinterface"

    
          url="%SWFPATH%/plugins/soundinterface.swf"
    
          alturl="%SWFPATH%/plugins/soundinterface.js"
    
          rootpath=""
    
          preload="true"
    
          keep="true"
    
    volume ="0.2"
    
          />
    
    
    
    

2、在 onstart action 中插入播放指令,具体为 playsound(bggsnd, '%SWFPATH%/bgm.mp3', 0); 其中参数 0 表示实现无限循环播放。

视频自动播放功能实现:

1、导入视频相关场景内容

复制代码
 <scene name="liftTohell" isvideopano="true" thumburl="%CURRENTXML%/liftTohell.jpg" title="playing">

    
  
    
     <!-- include the

全部评论 (0)

还没有任何评论哟~