|
|
|
date: Wed, 25 Jun 2008 14:47:59 -0700 (PDT),
group: microsoft.public.windowsmedia.player.web
back
Re: getMarkerName on Safari (Windows)
Neil:
I use the following code:
<object id='MediaPlayer' width='100%' height='100%' type='application/
x-ms-wmp'>
<param name='uiMode' value='full'/>
<param name='AutoStart' value='false'/>
<param name='StretchToFit' value='true'/>
<param name="enableContextMenu" value="false"/>
</object>
I can get the markers count (with
MediaPlayer.currentMedia.markerCount) and manage the events
ScriptCommand, PlayStateChange and Error using:
function OnDSScriptCommandEvt(szType,szParam){
}
function OnDSPlayStateChangeEvt(nNewState){
}
function OnDSErrorEvt(){
}
regards,
Christian
On Jun 26, 1:32 pm, "Neil Smith [MVP Digital Media]"
wrote:
> What embed code are you using ? I wasn't aware Safari on any platform,
> any version usefully supported scripting of WM Components, although
> they may allow for basic web page embedding.
>
> Is (for example) the MediaPlayer object and currentMedia object
> showing as having any properties or methods at all (other than the
> basic DOM properties on the <object /> element) ?
>
> Cheers - Neil
>
> On Wed, 25 Jun 2008 14:47:59 -0700 (PDT), Christian
>
> wrote:
> >Hi:
>
> >This code:
>
> >nCount =MediaPlayer.currentMedia.markerCount;
> >for(var i=1;i<nCount;i){
> > alert(MediaPlayer.currentMedia.getMarkerName(i));
> >}
>
> >works fine on IE6, Firefox 2, but on Safari 3 for Windows
> >MediaPlayer.currentMedia.getMarkerName(i) returns undefined.
>
> >thanks in advance
>
> ------------------------------------------------
> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs
date: Fri, 27 Jun 2008 07:43:02 -0700 (PDT)
author: Christian
|
|