HTML5 video with Brightcove

Matt Ball picture Matt Ball · Nov 22, 2011 · Viewed 9k times · Source

I currently have a working Brightcove Smart Player implementation, with Flash as the default and an HTML5 fallback where Flash is not supported (read: iOS). I would like to reverse this: prefer HTML5 video, and use Flash as the fallback. Is this possible, and if so, how? Brightcove seems to have entirely missed the point of providing an HTML5 option by using it as the fallback instead of the preferred format.

Additionally, although Brightcove announced plans to support WebM as well as H.264 18 months ago, it seems that the HTML5 player still only supports H.264. Firefox can't (and likely will never) support H.264 for patent (and, IMO, ideological) reasons. Firefox is used far too widely to leave out in the cold. Is there a way to serve WebM HTML5 videos to Firefox with Brightcove?

Answer

net.uk.sweet picture net.uk.sweet · Apr 19, 2012

You can force a SmartPlayer to display in HTML5 using the following parameter in the object tag used to embed the player in the page:

<param name="forceHTML" value="true" />

The following Brightcove whitepaper explains their reasoning for defaulting to Flash and falling back to HTML5:

http://blog.brightcove.com/en/2011/01/html5-video-facts-fiction-new-whitepaper

To summarise, their argument is that limitations in HTML5 video (as of January 2011) mean that, in order to deliver certain key features to their publishers, Brightcove need to default to Flash and fallback to HTML5 for certain mobile devices (as counter intuitive as that may sound to some). The limitations of HTML5 video they cite are in the following areas:

  • analytics
  • advertising
  • content protection
  • live streaming
  • captions