PageSourceSearch

https://matomo.org/wp-content/cache/min/1/wp-content/themes/website-child/assets/js/video.js?ver=1790201991

js matomo.org collected 2026-09-24 06:36:11 UTC 4,178 bytes, 10 lines download raw bytes

1(function(){var canMediaSource=typeof(window.MediaSource||window.WebKitMediaSource)==="function";var isIos=(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)||navigator.userAgent.match(/(iPad|iPhone|iPod)/g));var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function closeModal(){var $video=jQuery('.matomo-modal video');if($video.length){try{$video[0].pause()}catch(e){}}
2jQuery('.matomo-modal .matomo-modal-content').empty();jQuery('.matomo-modal').hide()}
3function showModal(){if(!jQuery('.matomo-modal').length){var div='<div id="myModal" class="matomo-modal"><span class="close cursor">&times;</span><div class="matomo-modal-content"></div></div>';jQuery(div).appendTo('body');jQuery('.matomo-modal .close').click(function(event){closeModal();event.stopPropagation()});jQuery('.matomo-modal .matomo-modal-content').click(function(event){if(event&&event.target&&event.target!==this){return}
4closeModal()});jQuery('.matomo-modal').click(function(event){if(event&&event.target&&event.target!==this){return}
5closeModal()})}
6jQuery('.matomo-modal .matomo-modal-content').empty().append('<div style="color: white;margin: auto;    display: block;    width: 100px;    height: 100px;    padding-top: 25%;">Loading...</div>');var $div=jQuery('.matomo-modal');$div.show();return $div}
7function showVideo(videoName,placeAt){if(!placeAt){var $modal=showModal();$modal.find('.matomo-modal-content').empty().append('<div style="width: 80%;margin: auto;max-height: 90%;margin-top: 5%;"><video id="matomoOverlayVideo" controls playsinline></video></div>')}else{jQuery(placeAt).append('<video id="matomoOverlayVideo" controls playsinline></video>')}
8var title=String(videoName).replace(/_/g,' ').toLowerCase();title=title.charAt(0).toUpperCase()+title.substr(1);var baseUrl='https://video.matomo.org/'+videoName+'/';var video=document.getElementById('matomoOverlayVideo');jQuery(video).attr('data-matomo-title',title);video.poster=baseUrl+'thumbs-192x108-00001.png';var player=new Plyr(video,{captions:{active:!0,update:!0}});player.autoplay=!1;player.poster=baseUrl+'thumbs-192x108-00001.png';player.source={type:'video',title:title,poster:baseUrl+'thumbs-192x108-00001.png',sources:[{src:baseUrl+'index_720.mp4',type:'video/mp4',size:720},{src:baseUrl+'index_360.mp4',type:'video/mp4',size:360},{src:baseUrl+'index_1080.mp4',type:'video/mp4',size:1080}]};video.addEventListener('error',function(){console.log('Video error:',video.error);console.log('Current source:',video.currentSrc)});if('object'===typeof window&&'object'===typeof window.Matomo&&'object'===typeof window.Matomo.MediaAnalytics&&window.Matomo.initialized){window.Matomo.MediaAnalytics.scanForMedia()}}
9var hasBeenRequested=!1;var hasLoadedPlyr=!1;var hasLoadedDash=!1;var hasLoadedHls=!1;var requestedVideo=null;var requestedPlaceAt=null;window.playMatomoVideo=function(videoName,placeAt){requestedVideo=videoName;requestedPlaceAt=placeAt;if(!hasBeenRequested){hasBeenRequested=!0;if(canMediaSource){script=document.createElement('script');script.src='/wp-content/themes/website-child/assets/js/hls.min.js';script.onload=function(){hasLoadedHls=!0;if(hasLoadedPlyr&&hasLoadedDash&&hasLoadedHls){showVideo(requestedVideo,requestedPlaceAt)}};document.body.appendChild(script);script=document.createElement('script');script.src='/wp-content/themes/website-child/assets/js/dash.all.min.js';script.onload=function(){hasLoadedDash=!0;if(hasLoadedPlyr&&hasLoadedDash&&hasLoadedHls){showVideo(requestedVideo,requestedPlaceAt)}};document.body.appendChild(script)}else{hasLoadedDash=!0;hasLoadedHls=!0}
10var script=document.createElement('script');script.src='/wp-content/themes/website-child/assets/plyr/plyr.polyfilled.min.js';script.onload=function(){hasLoadedPlyr=!0;if(hasLoadedPlyr&&hasLoadedDash&&hasLoadedHls){showVideo(requestedVideo,requestedPlaceAt)}};document.body.appendChild(script);var style=document.createElement('link');style.setAttribute('href','/wp-content/themes/website-child/assets/plyr/plyr.css');style.setAttribute('rel','stylesheet');document.head.appendChild(style)}else if(hasLoadedPlyr&&hasLoadedDash&&hasLoadedHls){showVideo(requestedVideo,requestedPlaceAt)}}})()

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.