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