Interaction with browser policies

Audio Policies

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">

Notice that the parameters are added as single item configuration but could also be added as global configuration.

Cookie storage policies

The new GDPR Policy prohibits publishers from storing any identifying information about users without their explicit consent. We’re happy to report that none of the Vilynx products collect personal information about users and are therefore fully compliant with GDPR. That being said, we do use cookies to store Vilynx-specific user IDs.

If you want to allow your users to block this cookie for a specific page, use the disablestorage param in the Gallery script.

For example:

 function () {

     var fileRef = document.createElement('script');

     fileRef.setAttribute("type", "text/javascript");
     fileRef.setAttribute("src", "//{{galleryVersion}}.min.js");
     fileRef.setAttribute("data-publickey", "YOUR_USER_ID");
     fileRef.setAttribute("data-disablestorage", "true");