Forum Replies Created
-
AuthorPosts
-
January 7, 2021 at 5:53 pm in reply to: MP4 Video Loop Stopping at First Frame instead of Last Frame #1270924
Topic may be closed. Thanks!
January 6, 2021 at 6:35 pm in reply to: MP4 Video Loop Stopping at First Frame instead of Last Frame #1270685I 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
}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!
This reply has been marked as private.December 24, 2020 at 12:12 am in reply to: Video background in color section when set to not loop reverts to first frame #1269685Any 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.
-
AuthorPosts