gemma hiles

GEMMA HILES free subscription click here

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Request - allow video embed codes (HTML5)

Author Message
joxr Offline
memento mori
***

Posts: 204
Joined: Feb 2012
Reputation: 40
Post: #1
Request - allow video embed codes (HTML5)
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
11-08-2013 15:54
Find all posts by this user Quote this message in a reply
Barney Stinson Away
 

Posts: 746
Joined: Feb 2012
Post: #2
RE: Request - allow video embed codes (HTML5)
This already works Smile
12-08-2013 17:28
Find all posts by this user Quote this message in a reply
joxr Offline
memento mori
***

Posts: 204
Joined: Feb 2012
Reputation: 40
Post: #3
RE: Request - allow video embed codes (HTML5)
(12-08-2013 17:28 )Barney Stinson Wrote:  This already works Smile


Nope Sad

13-08-2013 01:06
Find all posts by this user Quote this message in a reply
Barney Stinson Away
 

Posts: 746
Joined: Feb 2012
Post: #4
RE: Request - allow video embed codes (HTML5)
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?
13-08-2013 10:58
Find all posts by this user Quote this message in a reply
joxr Offline
memento mori
***

Posts: 204
Joined: Feb 2012
Reputation: 40
Post: #5
RE: Request - allow video embed codes (HTML5)
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...
14-08-2013 23:21
Find all posts by this user Quote this message in a reply
Post Reply 



GEMMA HILES free subscription click here

gemma hiles