Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: David Gonzales [MS] (dgonzal_at_online.microsoft.com)
Date: 04/23/04


Date: Fri, 23 Apr 2004 13:07:53 -0700

Not sure that this will answer your question or not, but the "Windows Media
Player for Pocket PC SDK" was for Pocket PC 2002, and not for Pocket PC
2003. I'm surprised that you have gotten it to work partially.

David
------
This posting is provided "AS IS" with no warranties, and confers no rights.

"Jeroen de Bekker" <jeroen@maasnet.nl> wrote in message
news:84077B58-EA2A-4FC3-BFEF-BA7C052D0F24@microsoft.com...
> I am programming an application for a Pocket PC 2003 in eVC++ . This
Pocket PC (iPaq) has integrated WLAN available, and is part of a LAN.
> The goal is to embed the Windows Media Player Control for Pocket PC in a
dialog, and to play a movie in it. The movie is streamed from a webserver in
the LAN.
>
> Well, this has succeeded. I have installed the Windows Media Player for
Pocket PC SDK (which is hard to find on the internet btw) and created a CWnd
derived class which hosts the WMP ActiveX control. Any movie file can be
displayed, whether it is locally stored on the iPaq or streamed from a
webserver in the network by using a Url.
>
> However, the application needs to communicate with a Server Application.
To that purpose, I created a CCeSocket instance. After making the instance,
one should call Create() to physically create the socket.
>
> But, I encountered this strange behaviour (bug?):
>
> Whenever a CCeSocket instance has been made and created and a movie clip
is streamed by using a Url, an ASSERT wil fire in wcesock.cpp on line 732
when the movie playback stops. This does *not* happen when a local movie
file is played instead of a Url movie file.
> It seems like the Windows Media Player Control does some cleanup after a
movie playback from a Url has been finished, and that this cleanup causes an
error in the socket implementation.
>
> When I look in the wcesock.cpp file, I see that the ASSERT is caused by an
error identified by WSAENOTSOCK:
>
> // MessageId: WSAENOTSOCK
> //
> // MessageText:
> //
> // An operation was attempted on something that is not a socket.
> //
> #define WSAENOTSOCK
>
> I will mail my (stripped) source and the Windows Media Player for Pocket
PC SDK on request, so you can reproduce the problem.
> Do not forget to alter the movie file name and the IP Address of the
Webserver to your own needs. All important code is in the OnInitDialog()
method of the CWMPSocketTestDlg.cpp file.
>
>
> Does anyone know why this happens, or does anyone have a workaround?



Relevant Pages

  • Re: Movie maker and burn to DVD
    ... burning software (Nero) import the DV-AVI file and tell Nero to burn a VIDEO ... > to file and choose the option of saving the movie to a recordable CD. ... > nero accesses my "all files" the icon is that of windows media player. ...
    (microsoft.public.windowsxp.video)
  • Re: error 0xc00d1199
    ... I would probably re-encode it using windows media encoder. ... I'm assuming you have the whole movie still on tape, ... >minuets and I got the message "Windows Media Player ... Quicktime and Windows Media Player. ...
    (microsoft.public.windowsmedia)
  • Re: Embedding Media Player 9 within Pocket IE
    ... I use the the Windows Media Control for Pocket IE in an Embedded Visual C++. ... The goal is to embed the Windows Media Player Control for Pocket PC in a dialog, and to play a movie in it. ...
    (microsoft.public.pocketpc.developer)
  • Re: unknown error
    ... Where are you trying to download this movie from? ... Troubleshooting Windows Media Player Error Messages ...
    (microsoft.public.windowsmedia.player)
  • I think I need a codec, but dont witch one.
    ... Windows Media Player version (on the Help menu, ... What task you were trying to accomplish prior to encountering the error ... So please answer if you can help me, because I really want to see that movie ...
    (microsoft.public.windowsmedia.player)