Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Media Player > WMP Current Position problem

Reply
Thread Tools Display Modes

WMP Current Position problem

 
 
TAllen
Guest
Posts: n/a

 
      09-29-2006
Hello,

I am having problems with WMP in a web page. I am using the sample embedding
code in WMP 10 SDK and it works fine. But I cannot set any controls to set
the current position. I need to start the video at certain times but cannot
get the Player.Controls.currentPosition Param. to function.

I put currentposition event under the play button click event but the video
always starts from the beginning of the video. If I click on the play button
a second time the video starts at the currentposition mark.

Any ideas??
 
Reply With Quote
 
 
 
 
Neil Smith [MVP Digital Media]
Guest
Posts: n/a

 
      10-01-2006
On Fri, 29 Sep 2006 07:16:01 -0700, TAllen
<> wrote:

>Hello,
>
>I am having problems with WMP in a web page. I am using the sample embedding
>code in WMP 10 SDK and it works fine. But I cannot set any controls to set
>the current position. I need to start the video at certain times but cannot
>get the Player.Controls.currentPosition Param. to function.
>
>I put currentposition event under the play button click event but the video
>always starts from the beginning of the video. If I click on the play button
>a second time the video starts at the currentposition mark.
>
>Any ideas??



First off the file must be "Indexed" in order to perform seek
functions. So you need to find that out - it would happen either at
encoding time (in the encoder profile) or afterwards, for example
using "Save as and Index" in windows media file editor.

What happens when you put a testing "alert('hello world')" in your
javascript just before you set the position - do you see the alert pop
up, or is your function not being called ?

And finally (assuming IE) what error reporting have you set in IE
options - you need to display all script errors.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2006
http://mvp.support.microsoft.com/mvpfaqs
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE default Window position SacredHeart Windows Vista General Discussion 0 01-12-2009 11:16 PM
maintenance technician position AHMED T. KPAKA Windows Vista Mail 2 07-16-2008 01:55 AM
OEMTextOut glyph position problem alex@plotall.com Windows Vista Drivers 0 04-18-2007 12:53 AM
How to get current File Pointers Physical Position on Drive/CD/DVD... Kerem Gümrükcü Windows Vista Drivers 0 10-17-2006 09:48 AM
Re: vistabootpro current settings - winload.exe problem on startup Andre Da Costa [Extended64] Windows Vista Installation 1 06-07-2006 01:14 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59