The UK Babe Channels Forum

Full Version: Request - allow video embed codes (HTML5)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Allowing the option to embed video using HTML5 specific element codes in forum posts would be very handy, eg:

PHP Code:
<video width="646" height="364" controls poster="ella.png" preload="none" loop="true">

  <!-- 
chromeffsafari -->
      <
source src="ella.webm" type="video/webm">
      <
source src="ella.ogg" type="video/ogg">

  <!-- 
iosandroidsafariie -->
      <
source src="ella.mp4" type="video/mp4">

  <!-- 
browser not html5 compliant fall back to old skool embed -->
      <
object width="646" height="364">
          <
param name="movie" value="ella.swf">
          <
embed src="ella.swf" width="646" height="364"></embed>
      </
object>

</
video
This already works Smile
(12-08-2013 18:28 )Barney Stinson Wrote: [ -> ]This already works Smile


Nope Sad

I see the problem now the forum is passing the source block through htmlentities() .
You could just use an iframe embed from your own server then?
Yes, a "Mycode" entry is required to allow the tags I believe.

Using iframes is a feasible workaround but an unnecessary step when the above code will work just fine on any modern browser (and older ones with the <object> code) - I've been using it prolifically elsewhere for some time now.

It's no big deal, just a nice to have...
Reference URL's