View Full Version : Looking an API to control MPC
dimzon
29th January 2008, 16:14
Hi!
I want to use Media Player Classic in my HTPC. Reasons:
1) It plays fine and everything
2) I can use ffdshow for upscaling ANYTHING to my HDTV-Ready Panel (1360*768)
3) It's VERY stable
4) It's free
Unfortunately it's not suitable as is. I need some OSD features like "Open File", "Pan & Scan", "Chapters", "Audio Tracks" and "Subtitles" to be controllable via 6 keys only (UP/DOWN/LEFT/RIGHT/ENTER/ESC) via my IR-remote. So I want to write some wrapper around it.
Is there any API to control MPC? I've found WebInterface - is it proper way for such software interaction?
chros
29th January 2008, 20:07
You can use girder (http://www.girder.nl/ , unfortunately it's not free :( ) to control MPC via standard window-messages (so I think you need this):
eg: Play:
Message: 273
wParam: 888
IParam: 0
Send Method: PostMessage
Result variable: SendMessage
At winamp.com you can find (try google) several writing in this topic ...
See how girder does the job, and you can implement it !
I'm very curious what you will do ! :)
It's not easy to set-up (you must read), but it has a profile for MPC ...
I'm using the 4.xx version for a year now, and it's working perfectly:
- volume up/down, forwarding, stop, pause play, skipping tracks (I only needed these function ...)
But some friends of mine have bought a wireless keyboard (which has a mouse pointer too :) ), so for them my method is unnecessary.
If you have any question regarding girder, just shoot it !
PS: and thanks for your programming work !
dimzon
31st January 2008, 15:14
chros, I'm already using girder. As I said before I want at least "Open File" feature via OSD.
Where to get all messages for MPC ?
chros
1st February 2008, 11:52
As I said before I want at least "Open File" feature via OSD.
I think it's implementable in girder with the help of an advanced OSD plugin ... (but I didn't do such a thing ...)
Where to get all messages for MPC ?
I don't know, I'm using the "capture" feature of Girder ...
PS: I saw your other thread, and I wish you can make some standard API together !
linx05
1st February 2008, 14:15
Will this help with my thread: Media Player Classic and its API (http://forum.doom9.org/showthread.php?t=126582)?
stax76
22nd July 2008, 00:18
I wonder why you did not join/extend/fork MediaPortal?
stax76
9th August 2008, 02:04
In case somebody is interested, MediaPortal has a API for external players, there is a plugin that integrates gmplayer using this API. I'm currently hacking on a MediaPortal plugin, it fixes some issues and adds some features to the internal MediaPortal Video and DVD player.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.