Re: Embedded Windows Media Player 11 odd behavior
- From: Arjan <Arjan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 9 Aug 2007 00:54:01 -0700
Hi Neal,
Thank you for your reply.
I have considered the MPEG2 decoder installation issue as a possible cause
of the problem.
As mentioned before: the MPG movie gets downloaded the first time but fails
to play. The second time you open the same web-page and play the same movie
it now will play correctly until it is completed because the movie file is
already cached in the IE cache. This behavior can be reproduced by emptying
the IE Cache's offline content files and revisit the web-page.
So if the MPEG2 decoder is not installed on Windows XP with WMP 11 then why
would the same movie play the second time correctly? Should it then not fail
every time it starts to play the movie file?
On the development PC (Windows XP SP2 WMP11) on which the website is being
programmed using Visual Studio 2005 the same behavior can be reproduced...
Some how I do not think it is an MPEG 2 decodeer installation issue under
Windows XP with WMP11. I will try to use WMV file format and see what
happens...
--
I did revert back to the MWV format and left the eventhandler in tact. It
now seems to work on Vista Business + WMP11, Windows 2000 Professional + WMP9
and Windows XP Professional + WMP11.
For some reason I think the loading or activation of the MPEG2 decoder is
causing a problem when the movie is being downloaded from the Internet...
I will have to investigate that further since the MWV files take up more
space than the MPEG2 or MPEG4 format.
-- Arjan
"Neil Smith [MVP Digital Media]" wrote:
One possiblilty not considered in the discussion following is that.
WMP11 on XP might not have an appropriate MPEG decoder installed, so
that the video begins to play, fails and throws an error in the
embedded player control, then skips to the next item in the playlist.
Check to see if the affected machines can play the MPG files natively.
WMP11/XP doesn't come with an MPEG2 decoder. Vista Ultimate *does*
have an MPEG2 decoder which WMP11 can use, and I believe so does home
premium. Check other versions, for example against home basic,
MPEG1 should play if DirectX 9.0c is installed OK
If you can't resolve this, encode to WMV instead.
HTH
Cheers - Neil
On Wed, 8 Aug 2007 01:56:13 -0700, Arjan
<Arjan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Scenario:------------------------------------------------
I have created a webpage with embedded Windows Media Player 11 using asp.net
2.0 and javascript. The produced <object ...> HTML code is conform the
documentation of the WMP 11 SDK. The javascript should handle the
OpenStateChange and PlayStateChange events of the embedded media player.
When the mpg movie file has finished playing the next mpg file should be
downloaded and played. When a mpg file is being played some text is being
shown in a textbox on the webpage.
The problem:
When the code is ran under Vista with IE 7 and WMP 11.0.6000 the Media
Player events are caught and handled correctly. The mpg movie is downloaded,
played and when finished playing the next mpg file is being downloaded and
the process repeats itself.
However the same code does not work as expected under Windows XP (Pro) Sp2
with IE 6 and WMP 11.0.5721. The same mpg media file is being downloaded and
if I am lucky only the first frame is shown, then the javascript starts to
download the next mpg media file repeating the whole process. Oddly enough
when a wav file is downloaded using the same code under Win XP with IE 6 the
sound file is being played.
Note: Under Win XP (PRO) SP 2 IE 6, when the mpg files are in the local IE6
cache the javascript code does work correctly and the movies are shown as
expected.
How can I get the javascript code with WMP 11 to work correctly under Win XP
(Pro) SP2 with IE6 so that when the movie is downloaded it will be played as
expected?
Any help is much appreciated.
Arjan
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
- Follow-Ups:
- Re: Embedded Windows Media Player 11 odd behavior
- From: Neil Smith [MVP Digital Media]
- Re: Embedded Windows Media Player 11 odd behavior
- References:
- Re: Embedded Windows Media Player 11 odd behavior
- From: Neil Smith [MVP Digital Media]
- Re: Embedded Windows Media Player 11 odd behavior
- Prev by Date: Re: will not rip cd's
- Next by Date: Re: Reseting wmp install
- Previous by thread: Re: Embedded Windows Media Player 11 odd behavior
- Next by thread: Re: Embedded Windows Media Player 11 odd behavior
- Index(es):
Relevant Pages
|