diff --git a/upload/player/CB_video_js/cb_video_js.html b/upload/player/CB_video_js/cb_video_js.html index 2b9ce81d..863cccd1 100755 --- a/upload/player/CB_video_js/cb_video_js.html +++ b/upload/player/CB_video_js/cb_video_js.html @@ -34,15 +34,6 @@ {/if} - -{foreach $videos as $video} - {$related['imageSrc'] = get_thumb($video,1,FALSE,FALSE,TRUE,FALSE,'168x105')} - {$related['url'] = video_link($video)} - {$related['title'] = $video.title|truncate:30} - {$related_videos[] = $related} -{/foreach} -{$related_videos = json_encode($related_videos)} - @@ -75,7 +66,6 @@ - @@ -106,9 +96,8 @@ var branding_logo = "{$cb_logo}"; var product_link = "{$player_config.player_logo_url}"; var show_logo = true; - var autoplay = "{$player_config.autoplay}"; var default_res = "{$default_quality}"; - console.log("Fuck : "+navigator.userAgent); + var autoplay = "{$player_config.autoplay}"; if (autoplay == 'no' || navigator.userAgent.match(/Android/i) ){ @@ -116,13 +105,28 @@ }else{ autoplay = true; } + + //this condition is added for video head control advanced plugin + var video_head = "{$vdata.video_head}"; + var controls = true; + var loop = false; + var muted = false; + if (video_head == true){ + controls = false; + muted = true; + autoplay = true; + loop = true; + } + //player settings var cb_player_setup = { plugins : { }, "techOrder" : ['html5', 'flash'], - "controls": true, + "controls": controls, "autoplay": autoplay, "preload": "auto", + "muted": muted, + "loop" : loop }; var cb_timecomments_plugin = "{$cb_timecomments_plugin}"; // timecomments settings @@ -139,9 +143,7 @@ var ad_id = "{$current_ad.ad_id}"; } - var related_videos = '{$related_videos}'; // Related videos plugin settings - var slot_id = "{$smarty.get.slot_id}"; - related_videos_active= true; + var video_editor_enabled = "{$video_editor_enabled}"; // Interactive Ads plugin settings var i_instances = '{$active_instances}'; @@ -219,12 +221,6 @@ } - //Calling related Videos Plugin - if ( related_videos != "" && typeof related_videos != 'undefined' && related_videos_active && - !video_editor_enabled ){ - related_videos = JSON.parse(related_videos); - cb_vjs.relatedCarousel(related_videos); - } //Calling instance manager plugin for backend if ( video_editor_enabled && typeof video_editor_enabled != 'undefined'){ diff --git a/upload/styles/cb_28/layout/index.html b/upload/styles/cb_28/layout/index.html index 7066ec8f..f99170fe 100644 --- a/upload/styles/cb_28/layout/index.html +++ b/upload/styles/cb_28/layout/index.html @@ -3,6 +3,7 @@ {$no_recent = {lang code="no_recent_videos_found"}} {$loadMoreLang ={lang code="load_more"}} {ANCHOR place="display_head_sec"} +{ANCHOR place="video_head_player"}