[Mono-list] Recommended approach for embedding VLC in a Mono app?

thenextman richard at ayudasystems.com
Fri May 14 09:45:45 EDT 2010

Yes, it can do both.

You need to use the Process object in System.Diagnostics to kick off an
instance of MPlayer. Launch it with the -slave argument, and pass in the
handle to your window/control that you want MPlayer to draw in with the -wid

You will need to redirect the stdin/out/err to control MPlayer and get
feedback from it.

The docs on slave mode are here:
http://www.mplayerhq.hu/DOCS/tech/slave.txt. There are lots of useful
arguments, like -idle which will prevent MPlayer from exiting if it doesn't
have anything to play.

There is a decent tutorial here:
http://beradrian.wordpress.com/2008/01/30/jmplayer. It's in Java but it was
enough to get me going...
View this message in context: http://mono.1490590.n4.nabble.com/Recommended-approach-for-embedding-VLC-in-a-Mono-app-tp2216492p2216598.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list