Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Media on Windows CE using Compact Framework

I have the following requirements:

I need a api that works on CE (x86) + .NET Compact Framework to play videos (Similar to CorePlayer API... Just free)?

Is their anything else available or must I use CorePlayer?

like image 429
rudigrobler Avatar asked Mar 27 '26 21:03

rudigrobler


2 Answers

You could use the MediaPlayer with COM interop. Have a look at this and this.

Also, Media Player may not be installed in your device.

like image 114
kgiannakakis Avatar answered Apr 01 '26 08:04

kgiannakakis


You need to use DShow and have the codecs for whatever media you intend to play in the image. COM interop for WMP 9.0 (which is what ships up through at least CE 5.0, maybe also in 6.0) is a non-starter for managed code.

If you don't know DShow, it's a fair amount of work - even in native code - as DShow is not a fun or friendly API set.

The plus side is that you don't need WMP at all in the image, so you can typically use a Core CE license (Pro is required to use WMP). I know of a commercial DShow control, but you said you're looking for a free solution and I'm not aware of anything other than rolling your own. Depending on your level of familiarity with COM interop (which you'll need for the DShow stuff) and the use of DShow and filtergraphs, I'd allocate at least a week or two to getting this working.

One added note - the complexity also changes depending on how you want the video displayed. If it's just full-screen then it's a bit less work than getting it inside a Window within your app. Not a lot less, but at least a little.

like image 40
ctacke Avatar answered Apr 01 '26 06:04

ctacke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!