views:

102

answers:

2

Hey,

I am trying to convert our all-flash website to HTML 5. But since so many users still use IE and other browsers that do not support HTML 5 yet, I am looking for some flash media players that can replace <audio> and <video>. My google skill does not yield good results. The flash media player should dispatch events specified at https://developer.mozilla.org/En/Using_audio_and_video_in_FireFox (or at least talk to javascript some how for those events).

Do you know a flash media player that can easily be embedded inside <audio> or <video> and talks to javascript for events?

+1  A: 

you should use some server side for doing that. basically you check the user User-Agent and if it's IE you just put your current flash based content. If it's firefox and other put the HTML5 content.

Note: it also possible to use some javascript to achieve same goal.

RageZ
+1  A: 

Any instance of Adobe Flash Player within an HTML page would not be able to parse the tags within the page themselves... the tags are read by the browser, which invokes the plugin, and so the browser would notice VIDEO/AUDIO tags 'way before the Player would have a chance to change things.

But have you looked at some of the conditional markup/script approaches to determining browser capability? Kroc Camen had one of the first big attempts on this subject, and I'm not certain of other entrants in the field right now, but here's a starting point: http://camendesign.com/code/video%5Ffor%5Feverybody

(I'm not sure about "all Flash sites" in general, because Flash is generally used within HTML, but an "all 'HTML5' site" would seem even shakier than that, at least at this stage. Your decision though.)

jd/adobe

John Dowdell