Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Wed, 25 Jun 2008 14:47:59 -0700 (PDT),    group: microsoft.public.windowsmedia.player.web        back       


getMarkerName on Safari (Windows)   
Hi:

This code:

nCount =MediaPlayer.currentMedia.markerCount;
for(var i=1;i<nCount+1;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
date: Wed, 25 Jun 2008 14:47:59 -0700 (PDT)   author:   Christian

Re: getMarkerName on Safari (Windows)   
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+1;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-2008
http://mvp.support.microsoft.com/mvpfaqs
date: Thu, 26 Jun 2008 17:32:00 GMT   author:   Neil Smith [MVP Digital Media]

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us