Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded Windows Media Player

Status
Not open for further replies.

webscriptprogrammer

Programmer
Nov 26, 2005
31
SE
Hi

I try to set value of where the movie is going to start playing.

I have try

Code:
video.CurrentPosition = 20;

video.SetCurrentPosition = 20;

video.SetCurrentPosition(20);

but nothing happend or it say something JS wrong.
 
Do you know for sure that the WMP API supports setting the current position? I suggest reading the API docs (which you should be able to find by searching MSDN) to find out how to do this.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Lots of code it may be - but have you tried copying it as they show it - if it works, then you can cut it down until it stops working. To try going for minimal straight away from (what you've said yourself is) "so much code" could be asking for trouble.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
If you using javascript in your application, I advice you to set position using Player.controls.currentPosition
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top