Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Topic may be closed. Thanks!

    I tried adding your code above but it brought back errors in my functions.php file. So I went to the related thread and tried that code (changing it from 8 seconds to 20 seconds), and it worked perfectly. Thank you for getting back to me with this resolution.

    add_action(‘wp_footer’, ‘ava_custom_script’, 10);
    function ava_custom_script(){
    ?>
    <script>
    (function($){
    var video = document.getElementsByTagName(‘video’)[0];

    video.addEventListener(“timeupdate”, function() {
    if (video.currentTime >= 20) {
    video.pause();
    console.log(‘paused’);
    }}, false);

    }(jQuery));
    </script>
    <?php
    }

    in reply to: PROBLEM WITH LOOP IN VIDEO #1270261

    Hi, I asked this question in another similar topic, but Ismail closed the topic and told me to start a new thread… but I see no way to start a new thread! So please help me, as I’ve been waiting almost two weeks for an answer. I would like my MP4 to end and stop on the last frame, but it jumps back to the beginning and stops on the first frame. I’m using a mac, tested on Safari, Firefox and Chrome – it appears on all of them. If you cannot address this question here, please point me to where I can start a new topic!

    in reply to: Masonry Grid Issues #1270258
    This reply has been marked as private.

    Any resolution to this issue? I’m having the same problem – I would like my MP4 to end and stop on the last frame, but it jumps back to the beginning and stops on the first frame. I’m using a mac, tested on Safari, Firefox and Chrome – it appears on all of them.

Viewing 5 posts - 1 through 5 (of 5 total)