WordPress.org

Ready to get started?Download WordPress

Forums

MediaElement.js - HTML5 Video & Audio Player
Please no looping! (3 posts)

  1. techcarellc
    Member
    Posted 3 years ago #

    Hi - we do not want looping. Our video is looping. I tried loop="false" and loop="none". Neither works.
    see here: http://www.simplemathmachines.com/portfolio/greater-than-less-than
    password to see the post is hello

    Thanks!!!!!!!!!!

    http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/

  2. jwsand
    Member
    Posted 3 years ago #

    I am having the same problem. Seems like the loop="false" as documented does not work. Is there another solution to stop the looping?

  3. jwsand
    Member
    Posted 3 years ago #

    I think I found a solution, well it fixed it for me.
    In the file mediaelement-js-wp.php line 179 change

    'loop' => 'false',
    to
    'loop' => false,

    Basically what was happening is that $loop was being defined as a string (with the quotes) instead of a bool so it was always true... then on line 237 it changed loop: true because $loop was defined.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic