I am learning how to play videos on my web site. Below is some code that when run it show the page but it does not play. I am trying to come up with something that will play on
the four major browsers with the least amount of trouble on my part. I have read about 20 or 30 tutorials and I want write the code for the largest audience possible. I know there are many players out there and I am trying to hone in the the player or players that most people are likely to have. The code below uses quicktime. This may not be the best way to go. Any help or suggestions would be appreciated.
I have not opted out of flash player. I am building my own wysiwig page maker. Any info you wish to share would be greatly appreciated. I can’t program them all but I am trying to get media play , Flash, and quicktime at least so that people will have a few options. I make even make it where people can program there own if it is viable in a file. i believe I have quicktime working in all five major browsers now.
Felgall, Thank you very much. Doing the research for 10 years of of browsers . Is a heck of alot of work. I did test the code the five modern browser. Firefox , ie ,opera and chrome. You are saying that it will run without the class attribute for object tag and I don’t need the embed tag. I am running xhtml transitional. I thought I needed it.
<object classid=“”> is for IE4 through IE6,
<embed> is for Netscape 4 (and will work in other browsers but not in some versions of IE)
<object type=“”> is the HTML 4 standard way that works in all browsers more modern than IE6 and Netscape 4
<video> is the HTML replacement that does away with the plugin.
If the embed tag is the only HTML 3.2 tag that you are still using in the page then you might be able to finally complete transitioning from HTML 3.2 to HTML 4 and update the doctype the the HTML 4 strict one (the one that indicates that the page no longer contains any HTML 3.2 tags).
Its amazing how many people haven’t finished transitioning from HTML 3.2 to HTML 4 given that HTML 4 became a standard in 1997 whereas lots of people are already moving to HTML 5 when it isn’t even a standard yet.
Thank you Felgall,
I have already written the code in such a way as I can turn it strict with just the Doctype change. With minor changes using he video tag and audio tag it would met html 5 standards. I was not willing to go that far however, because as you say, I also new that html 5 was to new yet. I will update the code as you have described .
Felgall , I looked at your link and downloaded the page . It was interesting . w3c schools did not have that example on html 5. Did you arrive at that example thru your own testing?
My little program is currently about 8000 lines. Naturally, me being only a one man programmer I can’t include every feature that the premium programs do. I was simply going to
give my little program away. I am trying to make a painstaking effort to make what I have written work well for what it does. Thanks for the input.