It's so much easier just to embed the code. Why use the javascript? Is it really that much better to do it that way? Also, why do some site have both <object> and <embed>. This site has just the Javascript. What's the deal!

It's so much easier just to embed the code. Why use the javascript? Is it really that much better to do it that way? Also, why do some site have both <object> and <embed>. This site has just the Javascript. What's the deal!

There's a couple of advantages of the javascript over embed codes:
1. You don't get the 'click here to activate' message in Internet Explorer.
2. You can check for plugin version and auto-update before starting the video.
3. You can present a fallback if there's no flash (e.g. an MP4 video link for people who browse with a PSP or iPhone).
The disadvantage is indeed that the process is more complicated and you have more code. Also, you generally cannot copy-paste javascript on sites like MySpace, but you can paste an embed code.
The only advantage of an object/embed over just an embed code I found is that javascript interaction in IE only works with the object/embed system. If you don't use javascript interaction, it is no problem.

Thanks for the info. We went with the javascript and everything is working great. Here's a link to our new video section, in case you'd like to see it in action:
http://www.umm.edu/video_podcasts/mht/index.htm
I'm now trying to figure out how to use the javascript features (like multiple links in one player). You're web site is great and the player is wonderful.
Thanks a million!
Andy

How do I check for plug in version and auto update? I can't seem to find on the site how to do this.

Look at the SWFObject site: [url=http://blog.deconcept.com/swfobject/]SWFObject: Javascript Flash Player detection and embed script[/url]

Hi Andy.
How did you manage to compress such a lengthy video and make look so great, and yet stream so good.
I am testing video section but the vidieos do not stream well at all. It's 320x240 and about 6-7 mins in length. Thanks in advance!
Here's the link: http://www.movimiento22.com/videoplayer/videos.html

Sorry... I meant Monty, not Andy LOL.

We use VideoHost.com to convert our DVDs to mp4s and flash. They are great!

<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/2283185.js"></script><noscript>
<a href="http://answers.polldaddy.com/poll/2283185/">KOOTTAM NEWS EXSIT POLL</a><span style="font-size:9px;">(<a href="http://www.polldaddy.com">survey</a>)</span>
</noscript>
The JavaScript is much better, especially if you want help from experts.