1var IsPlaying = false; 2 3// light to add black background 4function ExecuteVideoBackground(cont,light) { 5 var windowW = ($(window).width() / 2); 6 var windowH = (($('#s4-workspace').height() / 2) + $('#NewsBox').height()); 7 //var windowH = ($(window).height() / 2); 8 $.getScript("../_layouts/15/FHD.Internet/js/bigvideo.js", function () { 9 10 BV = new $.BigVideo({ useFlashForFirefox: false, controls: false, container: $(cont) }); 11 try { 12 BV.init(); 13 } 14 catch (err) { 15 ; 16 } 17 $('#big-video-vid_html5_api').attr('poster', $('.screen').attr('poster')); 18 $('.vjs-control-bar').hide(); 19 $('#big-video-vid_html5_api').attr('width', '100%'); 20 $('#big-video-vid_html5_api').attr('height', '100%'); 21 22 23 $('#big-video-vid').css('width', '100%'); 24 25 $('#big-video-wrap').css('height', $(cont).height()); 26 $('#big-video-wrap').css('max-width', $(cont).width()); 27 if(light) 28 $('#big-video-wrap').css('background-color', 'black'); 29 30 31 32 showVideo(); 33 34 $("#big-video-vid_html5_api").bind("ended", function () { 35 IsPlaying = false; 36 showVideo(); 37 }); 38 39 IOS_checkVideo(); 40 41 42 43 }); 44 45 adjustButton(); 46 47 $(window).resize(function () { 48 $('#big-video-wrap').css('height', $(cont).height()); 49 $('#big-video-wrap').css('max-width', $(cont).width()); 50 adjustButton(); 51 }); 52 53} 54 55function adjustButton() { 56 $('#play').css('position', 'absolute'); 57 $('#play').css('top', $('body').height() / 2); 58 $('#play').css('left', '47%'); 59 $('#pause').css('position', 'absolute'); 60 $('#pause').css('top', $('body').height() / 2); 61 $('#pause').css('left', '47%'); 62} 63 64//Video Play/Pause
65function showPause() { 66 67 if (Is_IOS()) 68 { 69 window.open(FHD_VideoUlr, '_blank'); 70 return; 71 } 72 73 BV.getPlayer().play(); 74 $('#pause').show(); 75 $('#play').hide(); 76 if (FHD_IsSlideMaster) { 77 IsPlaying = true; 78 window.clearInterval(hsd_timer); 79 } 80} 81function showPlay() { 82 $("#big-video-vid_html5_api").show(); 83 BV.getPlayer().pause(); 84 $('#pause').hide(); 85 $('#play').show(); 86 87 88} 89function showVideo() { 90 BV.show($('.screen').attr('data-video'), { ambient: true }); 91 showPlay(); 92}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.