1function do_play_carousel_video(e, id, type, video_id, video_url) { 2 3 var carousel_gallery = $("#carousel-gallery-generic"); 4 carousel_gallery.on('slide.bs.carousel', pause_carousel_in_playin_video); 5 window.current_carousel_video_playing_id = id; 6 $('#carousel-gallery-generic .carousel-content ol li').click(function () { 7 carousel_gallery.unbind('slide.bs.carousel', pause_carousel_in_playin_video); 8 carousel_gallery.carousel('cycle'); 9 var current_id = window.current_carousel_video_playing_id; 10 if(Object.keys(DM.Player._INSTANCES).length && DM.Player._INSTANCES[current_id]){ 11 var player = DM.Player._INSTANCES[current_id]; 12 player.addEventListener("play", function(){ 13 window.current_carousel_video_playing_id = current_id; 14 carousel_gallery.on('slide.bs.carousel', pause_carousel_in_playin_video); 15 }); 16 player.pause(); 17 }else if(typeof(videojs) != 'undefined' && videojs.players[current_id]){ 18 var player = videojs.players[current_id]; 19 player.on("play", function(){ 20 window.current_carousel_video_playing_id = current_id; 21 carousel_gallery.on('slide.bs.carousel', pause_carousel_in_playin_video); 22 }); 23 player.pause(); 24 } 25 26 }); 27 28 $(e.target).next('div.carousel-caption').hide(); 29 $(e.target).hide(); 30 31 param = { 32 mediaid : video_url 33 }; 34 var height = $(e.target).height(); 35 var width = $(e.target).width(); 36 37 if (type == 'youtube') { 38 param = { 39 youtube_id: video_id, 40 mediaid : 'https://www.youtube.com/watch?v='+video_id 41 } 42 var setup = { 43 autoplay: true, 44 height: height, 45 width: width, 46 src : video_url, 47 techOrder: ["youtube","flash"], 48 playsinline:true, 49 ytcontrols:1, 50 }; 51 } else if (type == 'dailymotion') { 52 param = { 53 dailymotion_id: video_id,
54 mediaid : site_config_js.SITE_SCHEME + '://dai.ly/'+video_id, 55 height: height, 56 width: width, 57 params : { 58 autoplay : true 59 } 60 } 61 } 62 63 var url_template = site_config_js.url_template; 64 var id_pub = site_config_js.id_pub; 65 e.preventDefault(); 66 e.stopImmediatePropagation(); 67 68 if(site_config_js.devs.passage_du_player_sur_jw6_111776366){ 69 var setup = { 70 autoplay:true 71 }; 72 if(height){ 73 setup.height = height ; 74 } 75 show_jw_player(id, setup, url_template, id_pub, type, param); 76 }else if (type == 'youtube' && site_config_js.devs.Passage_du_player_sur_videojs){ 77 $("#"+id).addClass('video-js vjs-default-skin vjs-big-play-centered'); 78 show_videojs(id, setup, url_template, id_pub, type, param); 79 }else{ 80 show_video(id, url_template, id_pub, type, "", true, param); 81 } 82 83 return false; 84}
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.