%PDF- %PDF-
Direktori : /home/t/r/a/tradesc/www/relax/wp-content/uploads/elementor/js/min/ |
Current File : /home/t/r/a/tradesc/www/relax/wp-content/uploads/elementor/js/min/dce-advancedvideo.min.js |
(function($){var WidgetElements_AdvancedVideoHandler=function($scope,$){var elementSettings=get_Dyncontel_ElementSettings($scope);var id_scope=$scope.attr('data-id');var customControls=elementSettings.dce_video_custom_controls;if(customControls){var showImageOverlay=Boolean(elementSettings.show_image_overlay);var videoType=elementSettings.video_type;var autoplay=Boolean(elementSettings.autoplay);var lightbox=Boolean(elementSettings.lightbox);var muted=Boolean(elementSettings.mute);var loop=Boolean(elementSettings.loop);var controls=elementSettings.dce_video_controls;var generatePlyrVideo=function(){var videoContainer='.elementor-element-'+id_scope;var videoSelector=videoContainer+' .elementor-wrapper';if(videoType=='hosted'){videoSelector=videoContainer+' .elementor-video'} if(lightbox){videoContainer='#elementor-lightbox-'+id_scope;videoSelector=videoContainer+' .elementor-video-container > div'} var player=new Plyr(videoSelector,{controls:controls,autoplay:autoplay,muted:muted,loop:{active:loop},disableContextMenu:!1,hideControls:!1})} if($scope.find('.elementor-custom-embed-image-overlay').length){$scope.on('mouseup','.elementor-custom-embed-image-overlay',function(){if(lightbox){setTimeout(function(){generatePlyrVideo()},1000)}else{setTimeout(function(){generatePlyrVideo()},100)}})}else{generatePlyrVideo()}}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/video.default',WidgetElements_AdvancedVideoHandler)})})(jQuery)