Jump to content

H T M L 5 Compatibility

  • Please log in to reply
No replies to this topic

#1 ArmedAndReady



  • 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.


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:

To test, let's try this normal YT link:

Flash playable:

Should be playable even without Flash (HTML5):


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)

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