Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Ruven

    #1236825

    Hey 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,
    Ismael

    #1238047

    Hey 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,
    Ruven

    #1238988

    Hi,

    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,
    Ismael

    #1250405

    Hi 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
    #1251394

    Hi,

    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,
    Ismael

    #1251687

    Thank you, Ismael!

    Best,
    Ruven

    #1251971

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1254702

    Hi 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
    Ruven

    #1255368

    Hi,

    All of the videos in the page are playing automatically on our end using Firefox on Windows 10. Where are you testing the site?

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.