Hi everyone,

It should be virtually the same process to embed quicktime and wmv as
it is for a flash object..  So I was just glancing through the
swfobject.js file, and thought, if there was a way to pass in a
classid, and a list of params for <param> tags instead of flashvars--
this could easily work for most any type of media objects.

But then I wondered if this is already possible some how and I just
over looked it?

I have a helper method for generating quicktime files, but doing it
this way causes IE6 to say "click ok to load content of this page".
This is how I am doing it:

      <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"; height="#
{...@media_file.height + 16}" width="#...@media_file.width}"
id="media_player">
           <param name="src" value="#...@media_file.url_without_cache}" /
>
           <param name="controller" value="#...@media_file.controls}" />
           <param name="autoplay" value="#...@media_file.auto_start}" />
           <param name="bgcolor" value="#...@media_file.bgcolor}" />
           <param name="scale" value="#...@media_file.scale}" />

           <!--[if !IE]>-->

           <object type="video/quicktime" data="#
{...@media_file.url_without_cache}" width="#...@media_file.width}" height="#
{...@media_file.height + 16}">
             <param name="controller" value="#
{...@media_file.controller}" />
             <param name="autoplay" value="#...@media_file.auto_start}" /
>
             <param name="bgcolor" value="#...@media_file.bgcolor}" />
             <param name="scale" value="#...@media_file.scale}" />
           </object>

           <!--<![endif]-->
      </object>

-- or for wmv:

      <object type="video/x-ms-wmv" data="#
{...@media_file.url_without_cache}" width="#...@media_file.width}" height="#
{...@media_file.height + 72}" id="media_player">
        <param name="src" value="#...@media_file.url_without_cache}" />
        <param name="autostart" value="#...@media_file.auto_start}" />
        <param name="controller" value="#...@media_file.controller}" />
        <param name="enablejavascript" value="#...@media_file.js}" />
        <param name="transparentatStart" value="#
{...@media_file.transparent}" />
        <param name="ShowControls" value="#...@media_file.controls}" />
        <param name="ShowStatusBar" value="#...@media_file.status}" />
        <param name="bgcolor" value="#...@media_file.bgcolor}" />
      </object>

...  So I thought rather that writing js code to dynamically add this
to the page-- in other words, reinventing swfobject...  I thought it
would be cool if swfobject would just let you be able to specify what
type of object it is...  Thoughts anyone?

-patrick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to