LoginVSI – Enabling Video Autoplay For Chrome
Information
This article provides details of the modification required to allow the LoginVSI video content to play automatically through Google Chrome.
When the downloaded video content on the LoginVSI share is opened in a workload using Google Chrome the video does not automatically start playing.
Cause
This behaviour is due to Google Chrome only allowing video content in a web page to automatically start if it is muted.
Workaround
Edit each of the web content pages held in the \\{Your VSI Server}\{VSI Share}\_VSI_Websites\players\{quality}\HTML and modify the javascript to include the additional settings playsinline and muted.
The steps to modify the Javascript in each page are as follows;
- Navigate to\\{Your VSI Server}\{VSI Share}\_VSI_Websites\players\{quality}\HTML folder.
E.G. \\My-VSIServer\VSI_Share\_VSI_Websites\players\240p\HTML folder
- Open each of the HTML files in turn and locate the line below:
<div id="videoplayer"> <video id="LoginVSI_video_1" class="video-js vjs-default-skin" controls autoplay loop preload="auto" width="427" height="240"> </video> </div>
- Change the line to add in the playsinline and muted options as shown below:
<div id="videoplayer"> <video id="LoginVSI_video_1" class="video-js vjs-default-skin" controls autoplay loop muted playsinline preload="auto" width="427" height="240"> </video> </div>
- Save the file and exit
Repeat the steps above for each of the HTML files in the quality folders you want to edit and then Google Chrome will autoplay the videos as part of a workload.