Re: Playing fullscreen video



You will actually just need one of the Windows Mobile SDKs to work with the
OCX. I think the fastest thing to do is install the Windows Mobile 6.0
Professional SDK, and after you install it, check out the OCX sample in this
directory: %ProgramFiles%\Windows Mobile 6
SDK\Sample\PocketPC\CPP\ATL\wmpsample.

It also contains a Visual Studio project file and everything is set up to
build right out of the box. For the most part, you should be able to use the
Mobile 6.0 SDK even if you are targetting a 5.0 device. As far as the API
reference goes, you can use the WMP 11 reference link that I sent you before.

I hope this helps.

Thanks,
Raghu

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



"Sc4Freak" wrote:

Ah, that explains why only uncompressed worked. I didn't try RLE, because as
you said it only supported 8-bit colour.

The media player ActiveX control looks good. It's just that I can't find the
SDK for it. Which version do I need? WMP 10 SDK or WMP 11 SDK? It appears
that the only place I can obtain the WMP 11 SDK is in the Windows SDK for
Vista.

Thanks.

"Raghu [MSFT]" wrote:

Unfortunately, Windows Mobile only ships with RLE-8 codec support for AVI.
Have you tried compressing the video using RLE-8? Anyways, I am not sure if
RLE-8 will meet your needs because it is using 8-bit color encoding and not
very efficient.

Expanding on what Gary was suggesting, you can use the media player ActiveX
control to play videos in your own application, also full screen is
supported. The reference for the ActiveX control is here:
http://msdn2.microsoft.com/en-gb/library/aa387927.aspx. For full screen mode,
you can use the IWMPPlayer->put_fullScreen method.

Here is another helpful page that describes how to embed the ActiveX control:
http://msdn2.microsoft.com/en-gb/library/aa387146.aspx

Let me know if you have other questions.


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



"Sc4Freak" wrote:

Thanks for the help!

I'm rather inexperienced with DirectShow, but I tried your suggestion
anyway. I've only been able to get DirectShow to play uncompressed AVI, since
compression with any codec didn't seem to work (not even the old Microsoft
Video 1 codec). Uncompressed works and the video plays fine, but it's
unusable for obvious reasons.

I must be doing something wrong, although my code is basically a copy and
paste of the code found here:
http://msdn2.microsoft.com/en-us/library/aa454909.aspx#working_with_multimedia_topic7
(first block of code under the "Video Playback" heading)

Is there something that I'm doing wrong, or something that I'm forgetting?

"Gary Daniels [MS]" wrote:

You're correct, Windows Mobile doesn't ship with any WMV filters for DShow,
which probably is a little bit silly...

WMV is played via Windows Media Player on Windows Mobile, the media player
uses a custom playback setup internally in order to enforce DRM security
because Windows Mobile DirectShow does not support a secure DirectShow
graph. If you want to use WMV you'll need to look in to using the OCX to
embed media player controls within your app.

Everything but WMV and MP3 is played using DirectShow, so there are file
readers for those formats. I think (I'm not 100% certain as I'm primarily
focused on the capture side) AVI is available, and should work well for what
you're doing.

Gary Daniels
Windows CE Multimedia and Graphics

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.

"Sc4Freak" <Sc4Freak@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B9358909-82AA-4A40-AFA4-0303C18060DB@xxxxxxxxxxxxxxxx
Hi, I'm developing a small game and have reached the point where we need
to
play small videos for cutscenes and the like.

My first attempt was using DirectShow to play .wmv files, but it would
appear that the target device (Dell Axim X51v, running WM5) doesn't come
with
any DShow filters to play .wmv (which strikes me as a little silly).

Does anyone know of a way to play full screen video short of writing my
own
decoder? DirectShow is practically useless (unless I can somehow find a
filter to play wmv). And the Windows Media Player SDK doesn't appear to be
geared towards application development. The format doesn't really have to
be
.wmv, but ease of use of the API would be beneficial.

Thanks for any help.



.



Relevant Pages

  • Re: Playing fullscreen video
    ... the sample in the Windows Mobile 6 SDK compiled and ran fine under WM5. ... I've only been able to get DirectShow to play uncompressed AVI, ...
    (microsoft.public.windowsce.app.development)
  • Re: Why cant my DirectShow application play .mp3 or .mid files?
    ... write an DirectShow application to play .mp3 or .mid files, ... I also try to play these files by PLAYWND application, ... Is it Windows CE or Windows Mobile? ... I believe MP3 is implemented directly in Windows ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why cant my DirectShow application play .mp3 or .mid files?
    ... I also try to play these files by PLAYWND application, ... Is it Windows CE or Windows Mobile? ... that's typically not accessible via DirectShow (you can look for more ... I believe MP3 is implemented directly in Windows ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Problem with DirectShow under WinCE
    ... Windows Mobile part of the DirectShow comes along with Windows Mobile 5 sdk. ... Windows Mobile 5.0 Pocket PC SDK. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Error in IDMOWrapperFilter::Init()
    ... add/remove features from your Windows Mobile OS), ... Windows Mobile 5.0 has DirectShow, ... particular SDK may or may not include it. ...
    (microsoft.public.win32.programmer.directx.audio)