Is MediaEnded called every time a video ends when using a playlist?
Last post 04-30-2008 3:54 AM by Yi-Lun Luo - MSFT. 1 replies.
Sort Posts:
04-28-2008 8:09 PM
Is MediaEnded called every time a video ends when using a playlist?

I'm using a playlist, and have an internal timer that counts seconds while a video is playing.  I want it to reset to 0 every time a video in the playlist ends.  Right now I'm settin a listener on MediaEnded, and that function resets the time.  I was told it's not working, should it?

Jhorra

Joined on 08-29-2004
Phoenix, Az
Posts 146
04-30-2008 3:54 AM
Marked as Answer
Re: Is MediaEnded called every time a video ends when using a playlist?
Hello, this is by design. You have to do without playlist. You can set the MediaElement's Source to a single wmv file. Then you can handle the MediaEnded event, reset the timer, and set the MediaElement's source to another file.

 

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Joined on 10-29-2007
Posts 1,084