• Hi all,

    I’m having a bit of an issue with embedding a video on a clients site. He has an M4V file that he wants to embed on a page on his WordPress site. He wants it to auto play, loop infinitely and to hide the control panel (essentially, he wants an animated GIF, but that version of the file was over 100MB). 😉

    I’ve managed to get it working a couple of times in the past with this code:

    <embed width="400" height="270" src="http://www.honeycombeproductions.com.au/wp-content/uploads/2010/03/GlowingMoneyMovieCellPhone.m4v" align="right" loop="true" controller="false" style="margin-left: 20px;"></embed>

    Problem is that as soon as he edits the page, WordPress adds additional markup, and the video won’t work. Last time I had to fix this issue (about 6 months ago) I simply put the above code in the HTML editor immediately prior to saving the page, and it worked fine. This time around, no such luck.

    Anyone have any thoughts on why this code won’t work anymore, or perhaps a better solution? I thought perhaps a page template that includes the video would work well, as there’s no chance of the client removing it via the visual editor, but my code still won’t work regardless. 🙁

    Cheers,

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Its because he’s using the Visual editor, which edits things.

    Does it have to be in the page or can it be hard coded into the theme?

    If it HAS to be in the page, I’d look into shortcodes.

    Thread Starter Chris H

    (@chris-h)

    Thanks for your quick reply! 🙂

    Can be hard coded into the theme. I’ve tried putting the code from my post above into a page template, but it didn’t work. 🙁

    Cheers,

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Embedding M4V Videos’ is closed to new replies.