Embedded YouTube video not playable with IE6/Flash 6

I've embedded a YouTube video in my site which works fine but it's being reported that IE6/Flash6 users are just seeing a white panel rather than the video. Obviously they do not have the correct software versions to be playing these videos so how do I detect that situation and display an appropriate message rather than just a dead white box?
me_patrickAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IqAndreasCommented:
You should be able to set the needed Flash Player version in the publish settings, and Flash Professional will automatically generate a HTML file with the appropriate code, displaying a "click here to upgrade your Flash player" if you don't have the correct version installed.

However, the HTML generated by Flash can be lacking at times, so if that does not solve your problem, look into the "SWF Object" JavaScript library.
http://code.google.com/p/swfobject/

"SWF Object" should have a feature in it which detects the current Flash version, and displays information accordingly. Here is a tutorial that can help you get started:
http://www.gotoandlearn.com/play?id=77

Do you need any more information?
rpremuzCommented:
I'd suggest looking at http://kb2.adobe.com/cps/145/tn_14526.html
which discusses various methods of detecting the presence of the Flash Player by a web browser.

-- rpr.
IqAndreasCommented:
Sorry, I should have read the question better. The embed code was automatically generated by YouTube correct?

Try and see if the code I have attached works. If not, just reply back. Remember to replace that "http://www.youtube.com/v/jkBAUqp6NKg&hl=en_US&fs=1&" parameter with whatever value you were given for the YouTube video when you embedded it. If you post the link to the video you are using, I can track down the proper URL for you and give you the EXACT code you need.

Good luck with your programming,
Andreas
<script type="text/javascript" src="http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js"></script>    
  <div id="ytapiplayer">
    You need Flash player 8+ and JavaScript enabled to view this video.
  </div>

  <script type="text/javascript">

    var params = { allowScriptAccess: "always" };
    var atts = { id: "myytplayer" };
    swfobject.embedSWF("http://www.youtube.com/v/jkBAUqp6NKg&hl=en_US&fs=1&", 
                       "ytapiplayer", "480", "385", "8", null, null, params, atts);

  </script>

Open in new window

IqAndreasCommented:
In case you are curious, the source came (mostly) from this page:
http://code.google.com/apis/youtube/js_api_reference.html#Embedding

I made a few modifications to the code so you don't need to download any libraries in order to embed the YouTube video, just paste in the code and it will work. :)

Anything more I can help you with?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
me_patrickAuthor Commented:
Excellent - guys thanks very much.

Good background info  rpremuz but Andreas has given me the answer.

PS. I would've given rpremuz 100 point share but the 'accept multiple solutions' option didn't allow me to allocate points (I think there is a bug in there now) so I had to allocate the full amount to Andreas - sorry about that.
Regards.
Patrick.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.