Re: Embedded Windows Media Player 11 odd behavior
- From: CallMeTimm <YNLCGEYGLZUV@xxxxxxxxxxxxx>
- Date: Wed, 08 Aug 2007 19:01:49 -0000
Arjan:
As I wrote in my previous post, the WMP play states are not guaranteed
to occur in any particular order - they may fire in different orders
depending on the version of WMP you have and the type media you are
playing. This could explain the different behaviors you are seeing
between operating systems.
Your code is based on catching the "stopped" state when the
PlayStateChange event is fired. Try firing next() under "case 8: //
wmppsMediaEnded" instead - this is the state that indicates that the
media has played through until completion. I don't believe this event
is ever called when you call Player.Controls.Stop(), however, so you
will have to address that somehow too.
I also think you can dump all of the code in the OpenStateChange
handler. As long as you keep the 'autoStart' param value="true", the
player will play the file automatically each time the URL is updated.
--Tim
.
- References:
- Re: Embedded Windows Media Player 11 odd behavior
- From: CallMeTimm
- Re: Embedded Windows Media Player 11 odd behavior
- From: Arjan
- Re: Embedded Windows Media Player 11 odd behavior
- Prev by Date: WMP 11 does not play sound for CCITT Codec in Vista
- Next by Date: Re: Unable to Play DVD's
- Previous by thread: Re: Embedded Windows Media Player 11 odd behavior
- Next by thread: Re: Embedded Windows Media Player 11 odd behavior
- Index(es):