SSilver2k2
Guest
|
Posted:
Thu Aug 04, 2005 12:30 am Post subject:
New to media player, script error help |
|
|
Hello, im trying to access a lot of the functions of the sdk in the embedded
player, but for some reason, whenever I try to acces something, I get
'mediaPlayer1.settings' is null or not an object.
my object code is this:
<OBJECT ID="mediaPlayer1" width="320" height="143"
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="True" />
<PARAM name="filename" value="<?php echo $playfile; ?>" />
<PARAM name="showstatusbar" value="True" />
<PARAM name="showdisplay" value="True" />
</object>
I tried to do the mute unmute function listed below, and I always seem to
have these errors. I have no idea what is going on.
|
|
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Aug 04, 2005 12:30 am Post subject:
Re: New to media player, script error help |
|
|
Settings is an object related to player version 7-10, You've used the
classid for player version 6.4 which doesn't have a Settings object
(all properties for 6.4 are based on the top level Player object).
You need to change your embedding code to something like this intead :
<object id="MediaPlayer"
classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"
type="video/x-ms-wma" width="320" height="143">
<param name="autostart" value="true" />
<param name="stretchtofit" value="true" />
<param name="url" value="<?php echo $playfile; ?>" />
<param name="uimode" value="mini" />
<param name="windowlessvideo" value="true" />
<object id="MediaPlayer2" type="video/x-ms-wma" width="320"
height="143" data="<?php echo $playfile; ?>">
<param name="filename" value="<?php echo $playfile;
?>" />
<param name="showcontrols" value="0" />
<param name="animationatstart" value="0" />
<param name="transparentatstart" value="0" />
<param name="showaudiocontrols" value="1" />
<param name="showtracker" value="0" />
<param name="showdisplay" value="1" />
<param name="showstatusbar" value="1" />
</object>
</object>
HTH
Cheers - Neil
On Wed, 3 Aug 2005 14:06:02 -0700, "SSilver2k2"
<SSilver2k2@discussions.microsoft.com> wrote:
| Quote: | Hello, im trying to access a lot of the functions of the sdk in the embedded
player, but for some reason, whenever I try to acces something, I get
'mediaPlayer1.settings' is null or not an object.
my object code is this:
OBJECT ID="mediaPlayer1" width="320" height="143"
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="True" /
PARAM name="filename" value="<?php echo $playfile; ?>" /
PARAM name="showstatusbar" value="True" /
PARAM name="showdisplay" value="True" /
/object
I tried to do the mute unmute function listed below, and I always seem to
have these errors. I have no idea what is going on. |
|
|