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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping a video

Status
Not open for further replies.

rrajarat

MIS
Oct 8, 2002
42
0
0
US
This may be very simple but I can't seem to figure this out. How do I loop/repeat a video in WMP 9 until the user hits stop or changes the video?
 
See the property:
[tt]WindowsMediaPlayer1.settings.playCount[/tt]

There is no option for infinite looping but you can set the repeat count to a very large value creating a practically endless loop.
 
You can detect the EndOfStream and then trigger Play again.

[gray]Experience is something you don't get until just after you need it.[/gray]
 
Thanks Hypetia, I thought of your idea but was hoping for an infinite loop.
 
Sure you can so an infinite loop...

Build a loop that waits for an event to occur, something like:

Do While ButtonNotPressed
'Your code to play video here.
Loop

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top