thesunneversets
thesunneversets

Reputation: 2580

Embedding Flash & Quicktime Via JavaScript

I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF().

I want to be able to, alternatively, load a .mov file into the same div, in the event that this is the file found instead of the .swf.

Is there a close equivalent to swfobject.embedSWF for the purposes of embedding a .mov file? If not, what is an efficient route to doing this using JavaScript?

Upvotes: 0

Views: 92

Answers (1)

Andy E
Andy E

Reputation: 344527

QTObject might do what you need and it's from the same author as SWFObject. It's old though, so I'm not sure if it will work well in modern browsers.

EDIT I searched and found reports of it working fine in IE7, Firefox 2 and Opera 9, so you might just be in luck. Just make sure you test it thoroughly.

Upvotes: 1

Related Questions