On 26 Jan 2006 13:02:50 -0800, "Lace" <lace4mac.DeleteThis@gmail.com> wrote:
>Corentin, do you have any idea how can i change the MIME types for
>Safari broswer? will it solve the problem?
>
>Neil, I'm using the following code:
>--------------------------------------------------------------------------------------------------------------------------------
><OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=271
> CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
> STANDBY="Loading Windows Media Player components..."
> TYPE="application/x-oleobject"
>CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
>
> <PARAM name="autoStart" value=1>
> <PARAM name="filename"
>value="mms://colsvr06w01m.cti.edu/LectureHigh.wmv">
> <PARAM NAME="ShowControls" VALUE=1>
> <PARAM NAME="ShowStatusBar" VALUE=1>
><EMBED TYPE="application/x-mplayer2"
>SRC="mms://colsvr06w01m.cti.edu/LectureHigh.wmv"
>NAME="MediaPlayer" WIDTH=320 HEIGHT=271
> autostart="false" showcontrols="true" showstatusbar="true"></EMBED>
></OBJECT>
>---------------------------------------------------------------------------------------------------------------------------------
>
>I'll check back for the script on monday or tuesday.
OK so far (9pm Sunday) I've been unable to find enough time to
completely solve this. In the meantime, here's the code I'm so far
considering "optimal", which will play the content the same way in
Firefox (Mac and PC), IE6 (PC) and Safari :
<!--[if IE]>
<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"
type="application/x-oleobject" width="320" height="320"
id="MediaPlayer1">
<param name="url" value="falluja.asf" />
<param name="uimode" value="mini" />
<param name="autostart" value="true" />
<!--[if ! IE]>
<object type="video/x-ms-wmv" data="falluja.asf" width="320"
height="320" id="QTPlayer2">
<param name="src" value="falluja.asf" />
<param name="autoplay" value="true" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
<param name="qtsrcdontusebrowser" value="true" />
<param name="enablejavascript" value="true" />
</object>
<![endif]-->
</object>
Obviously, change each instance of "falluja.asf" for your complete URL
to your content.
There seems to be a subtle and unexpected problem with scripting the
QT player when embedding WMV content using the Flip4Mac component. I
won't reproduce this report here, you can read it on their forums and
watch for any follow-ups there :
http://www.flip4mac.com/fusetalk/forum/messageview.aspx?catid=32&threa...=971&en
Inthe meantime, the code above ought not to cause any problems you've
described with the player launching separately from the web page.
There could be slight differences in the controller height between
versions, that's something to take account of when sizing the controls
at design time (WMP7-10 is 40 pixels high, WMP6.4 is a little more,
Quicktime is 16 pixels)
Ref :
http://www.apple.com/quicktime/tutorials/embed.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmpla.../mmp_sd
HTH
Cheers - Neil