
-
AuthorPosts
-
August 7, 2020 at 5:07 pm #1236048
Dear Kriesi-Support Team,
I am building the site (private below, also I added a temporary login) and added the code below to functions php, to enable autoplay for the video snippets. There are two bugs, that occur now:
1) the site jumps to the position of the snippets on refresh, instead of the top.
2) the video in the header slider is not playing anymore
Can you please help me, adjusting that?add_action('wp_footer', 'av_mute_tab'); function av_mute_tab(){ ?> <script type="text/javascript"> (function($) { $(window).load(function() { $('.mejs-overlay-button').trigger('click'); $('.mejs-mute button').trigger('click'); }); })(jQuery); </script> <?php }
Thanks in advance,
RuvenAugust 12, 2020 at 5:27 am #1236825Hey Niederrhein-Wagyu-9,
Thank you for the inquiry.
Browsers actually prevent media files from playing automatically on page load unless they are muted or when the user who is viewing the content allowed it or has previously played videos with audio. Unfortunately, the script or workaround above will not work as expected due to the browsers’ autoplay policy.
// https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.).
On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.Best regards,
IsmaelAugust 15, 2020 at 9:08 pm #1238047Hey Ismael,
thanks for your reply. This is what irritated me: The videos are muted/we don’t need the sound. Still the autoplay didn’t work.
Do you have an alternative solution for us?Best and thanks in advance,
RuvenAugust 19, 2020 at 3:58 am #1238988Hi,
Thank you for the inquiry.
Did you mark off the Content > Player Settings > Enable Autoplay option of the video element? You can also mute the video in the same Player Settings toggle.
Best regards,
IsmaelOctober 4, 2020 at 1:36 pm #1250405Hi Ismael,
yes, the settings are on autoplay and all videos are muted – still it doesn’t play. We need the autoplay function for the desktop version, please help.In the meantime, I have removed the function.php snipped and tried this workaround instead: https://kriesi.at/support/topic/autoplay-self-hosted-videos/#post-183985
It didn’t work, too.In case needed, please refer to the temporary login and website link below.
Thanks for your help!
-
This reply was modified 4 years, 6 months ago by
Niederrhein-Wagyu-9. Reason: We realized, the video's are still not autoplaying
October 8, 2020 at 12:19 pm #1251394Hi,
The videos are now playing automatically on page load. Please remove the browser history and purge the cache. We checked the site on Firefox Windows 10.
Thank you for your patience.
Best regards,
IsmaelOctober 9, 2020 at 12:57 pm #1251687Thank you, Ismael!
Best,
RuvenOctober 11, 2020 at 2:40 am #1251971Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonOctober 21, 2020 at 4:39 pm #1254702Hi Jordan,
thanks for getting back to us. We still experience the problem with the non-header videos. The header videos play on page load, but the others don’t. Can you please help?Best
RuvenOctober 24, 2020 at 5:21 am #1255368 -
This reply was modified 4 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.