Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function player(){
- if(tourplayer == null){
- tourplayer = document.getElementById('krpanoSWFObject');
- }
- return tourplayer; }
- var _objIDs = ['spotvideo2869','spotvideo2870','spotvideo2871','spotvideo2872','spotvideo2873','spotvideo2874','spotvideo2875','spotvideo2876','spotvideo2877','spotvideo2878'];
- $.each(_objIDs,function(index,value){
- player().call('hotspot['+value+'].play()');
- player().call('hotspot['+value+'].stop()');
- });
- $.each(_videoSounds,function(index,value){
- $('#container').prepend(
- '<audio preload="auto" controls style="display: none" id="'+index+'_sound"><source src="indexdata/sounds/'+value+'" type="audio/mpeg"></audio>'
- );
- document.getElementById(index+'_sound').muted = false;
- });
- function playVideoSound(videoID) {
- $.each(_videoSounds,function(index,value){
- $('#'+index+'_sound').trigger('pause');
- });
- $('#'+videoID+'_sound').trigger('play'); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement