tags:

views:

5834

answers:

5

Like many web developers I'm looking forward to streaming video that utilizes the new HTML 5 <video> tag. Browser support definitely isn't wide enough yet, so using a Flash/SWF fallback is a must.

This got me thinking: in Flash it's possible to highly customize the playback controls (pause, play, stop, seek, volume, etc.) in HTML 5?. What options are there for customizing the glyphs, icons and colors of video controls? Is Javascript required? For instance the following page renders different controls depending on the browser - tested using FF3.5, Chrome and Safari:

http://henriksjokvist.net/examples/html5-video/

It would be really awesome to customize and standardize controls across browsers and even match the Flash controls used by older browsers.

A: 

My guess is that the appearance of the controls is browser-dependent (and hence not very customizable). You could see what your test page looks like in all the browsers by submitting it to Litmus.

Richard Inglis
+3  A: 

YouTube is currently running a HTML5 beta. You can activate it by visiting http://www.youtube.com/html5. Currently not all Videos are displayed in HTML5 after activating the beta. Videos displayed in HTML5 get a different loading animation so you can identify them (like this one http://www.youtube.com/watch?v=KT1wdjlbyFc).

As you can see their video player just looks the same as the flash version.

Tim
They "get a small Button so you can identify them"? Where? Are you talking about the loading animation?
Langdon
Yep I meant the loading animation - edited my answer :-)
Tim
+8  A: 

In the HTML5 spec, there is a controls attribute for <video>.

Also check out this article: Video on the Web - Dive into HTML5. It explains:

By default, the element will not expose any sort of player controls. You can create your own controls with plain old HTML, CSS, and JavaScript. The element has methods like play() and pause() and a read/write property called currentTime. There are also read/write volume and muted properties. So you really have everything you need to build your own interface.

If you don’t want to build your own interface, you can tell the browser to display a built-in set of controls. To do this, just include the controls attribute in your tag.

Philip Morton
A: 

here is my sample of the "projekktor" project http://live.jamesm.com.au/plugins/html5video/ I have generated a json object of all the titles and urls of the hak5 podcast feed and it works fine..

JamesM
A: 

Hi folks,

You might be interested by looking the source code of this page. It's very detailled and well explained: http://people.opera.com/patrickl/articles/introduction-html5-video/scripted-controls/

Hope this helps :)

Laurent T