• I have a problem with [video] shortcode. It is displaying correctly with html5 video, but as soon as mediaelement.js loads, it breaks the video player.

    Since I don’t have any traffic from legacy browsers that doesn’t support html5, I’ve disabled mediaelement.js for now.

    Should I find a way to make my theme work correctly with mediaelement.js or I can just keep it that way?

    If the answer is to make it work with mediaelement.js, what could be causing the error?

Viewing 1 replies (of 1 total)
  • Thread Starter Ricardo Gon?alves

    (@brgweb)

    Of course, I should add some more info about the error here…

    Before medialement.js is loaded the video is displayed correctly with this source code:
    <video class="wp-video-shortcode" id="video-213943-1" width="640" height="362" preload="metadata" controls="controls"><source type="video/mp4" src="https://mysite.com/wp-content/uploads/2018/03/xyz.mp4?_=1"></video>

    After it is loaded, the buttons and the canvas disappear and just some text and the background cover image are displayed. That is the source code:
    https://pastebin.com/TXzHpstL

Viewing 1 replies (of 1 total)
  • The topic ‘Mediaelement.js not breaking html5 videos’ is closed to new replies.