• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Trying to get SWF file to play in HTML 5

I am trying to get a SWF file to play in HTML 5, using the code below:
<video width="650" height="90" controls="controls" src="CarePlanners6.swf" type="application/x-shockwave-flash" >
 Your browser does not support the video tag.
 </video>  
 
OR

<video controls="controls">
<source src="CarePlanners6.swf" type="application/x-shockwave-flash" preload="auto" width="650" height="90" codecs="" />  
 Your browser does not support the video tag.
</video> 

Open in new window


The result is this: http://careplanners.net/pages/Affiliates.cfm

... a black empty box, with an X in the middle (in MSIE 9). The web server is configured to serve MIME type application/x-shockwave-flash.

Is there a way to get HTML 5 to render a SWF file?

Thanks for any advice.

Eric
0
Eric Bourland
Asked:
Eric Bourland
2 Solutions
 
celazkonCommented:
Hi, I would try to add some player:
http://flowplayer.org/
http://videojs.com/
0
 
dgofmanCommented:
Yes you can embed SWF into your page using JavaScript

http://code.google.com/p/swfobject/
0
 
Eric BourlandAuthor Commented:
Guys, thanks for these ideas. I think I could get either solution to work, and I am glad to know about both solutions. I don't think that HTML 5 natively supports SWF files, which is too bad. In the end I used the plain old OBJECT tag code to implement the Flash files. I'm going to close this question and split the points. Thank you again for your time and help.

Eric
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now