Hi, I can't find a way to display "currentPosition" or "currentPositionString" below my player... I found this piece of code but I don't know how to make it work (I'm new to javascript)... var timer = window.setInterval("MyText.value = Player.controls.currentPositionString",1000); Any example ? Thanks in advance.
On Wed, 16 Apr 2008 14:41:04 -0700, Mateo wrote: >Hi, > >I can't find a way to display "currentPosition" or "currentPositionString" >below my player... > >I found this piece of code but I don't know how to make it work (I'm new to >javascript)... > >var timer = window.setInterval("MyText.value = >Player.controls.currentPositionString",1000); > >Any example ? Media player for Mac doesn't support using javascript for scripting the embedded player, sorry. The full list of functionality for that (now discontinued) player is on this page : http://www.microsoft.com/windows/windowsmedia/howto/articles/macicp.aspx You may instead be able to suggest to your users to install Flip4Mac codecs for Quicktime player, and script against that instead. HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2008 http://mvp.support.microsoft.com/mvpfaqs
Hi Neil, thanks for this information. However I'm still interested in developping something with WMP (for pc users ;-)). Would javascript work for Firefox users ? Be it as it may, could you give me an example of the javascript code to display currentposition on my page (without having to click a button) ? Thx again Mat.
Hi Neil, thanks for your answer. I'd still like to do something with javascript and WMP, for pc users. Will it work for Mozilla Firefox ? Be as it may, could you give me an example of the js code ? Thanks again, Mat. ps: I wish to display the currentPosition "dynamically" (without having to click a button).
On Fri, 25 Apr 2008 15:26:00 -0700, Mateo wrote: >Hi Neil, > >thanks for your answer. >I'd still like to do something with javascript and WMP, for pc users. Will >it work for Mozilla Firefox ? > >Be as it may, could you give me an example of the js code ? > >Thanks again, >Mat. > >ps: I wish to display the currentPosition "dynamically" (without having to >click a button). Are you also posting as 'max.mazzeschi' in the newsgroup microsoft.public.windowsmedia.web ? That happens to be the best place to discuss this, and there's another almost identical question over there which I posted a generic answer yesterday. Firefox users should be using the Port25 WMP plugin from here : http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx Scripting using the old netscape style plugin is a PITA and mostly non-functional. HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2008 http://mvp.support.microsoft.com/mvpfaqs