Jump to content


H T M L 5 Compatibility


  • Please log in to reply
No replies to this topic

#1 ArmedAndReady

ArmedAndReady

    Member

  • Members
  • PipPip
  • 514 posts
  • Some Random Archer
  • DN, Springwood

Posted 18 November 2015 - 05:58 PM

We need to make embedded videos compatible with HTML5 standards.

Intro:

There are lots of people who don't prefer to have Adobe Flash on their system due to frequent security holes and patching needed, aside from most ads being flash-based, and flash itself becoming deprecated. Still, video playback on YouTube and other sites and forums remain fine because of HTML5.

Personally, one drawback of not having flash is that whenever I view CC's forums and there's an embedded video, this is all I see:
Posted Image

This post is to test if YouTube videos can be embedded and played back through HTML5 on CC's forums.

As per this site and this site, either one of the codes below needs to be appended on the link of the normal YouTube video:
?html5=1
or
?html5=true

To test, let's try this normal YT link:
http://www.youtube.com/watch?v=KsGj-BkXNSE

Flash playable:


Should be playable even without Flash (HTML5):
http://www.youtube.c...-BkXNSE?html5=1
http://www.youtube.c...XNSE?html5=true
http://www.youtube.c...-BkXNSE?html5=1
http://www.youtube.c...XNSE?html5=true



Findings:

The embedded video player doesn't show when using either of the 4 media-tagged codes above (they have been converted to links instead).

When the CC forum processes the [media] tag, the link provided becomes a part of a code template similar to line 416 as seen below.
Posted Image

The code on line 416 above can be simplified to accommodate HTML5 as well :):
<iframe width="560" height="315" allowFullScreen=true src="http://youtube.com/embed/KsGj-BkXNSE?html5=1" ></iframe>

I've tested this code by copy-pasting to notepad -> save as HTML file and confirmed that its working, as shown on the pic below


Posted Image

Apparently, "watch?v=" from the normal YT link needs to be replaced by "embed/" while maintaining the "?html5=1" tag.

The video will be displayed as HTML5 if available, or fallback into flash player if the browser is not HTML5 compatible (which is now rare).

I hope CC forums can support embedded HTML5 videos soon :) (joe)
Thanks!

Edited by ArmedAndReady, 18 November 2015 - 11:29 PM.