Modern browsers are starting to prevent media playback with audio if the user doesn't interact with the website first. Currently, webkit browsers (Google Chrome and Safari), have done applied this policy. You can find more information on Autoplay Policy Changes post written by Chrome developers.
Gallery library will manage the browser policy, so you don't need to worry about this if your Gallery script configuration has previews with audio. Those previews will continue playing, but will play muted if the user has their browser audio policies active and with sound if the user interacts with the website at any point.
If you have inline video players on your site, and you are using a configuration with redirect and redirectwithclick parameters, audio policies will prevent a
.click() by the Gallery from being accepted as a user gesture. Here your inline video player, if has audio, will be paused on the first frame waiting for a real user click.
As a workaround, the Gallery library gives the option to show a CTA (call-to-action) message (this message can be modified with mobilectatext attribute) instead of the redirect countdown. This will ensure a real click action instead of firing a false
.click() on the element.
To enable this, use vilynx_audiopolicycta class configuration on your embedded player elements.
<div class="vilynx_redirect vilynx_audiopolicycta" data-vilynx-id="external_id"> <img src="img/bg01.jpg"> <div>
If you want to allow your users to block this cookie for a specific page, use the disablestorage param in the Gallery script.