PDA

View Full Version : Possible Media Player Classic support with DVDspy



go69
November 12th, 2003, 10:09 PM
Media Player Classic (http://sourceforge.net/projects/guliverkli/) is one of the best media players around, although a small number of things still frustrate me as I can't get the following to work:

* detect focus with TaskSwitch (TaskCreate detection works fine) - nothing shows-up in the logger.
=> I would tend to think it is linked to the fact that MPC does not show in the task list of the Windows taks manager, but could not see why it happens browsing MPC's source code.
=> any idea would be welcome.

* Information in DVDspy
=> Well I found in the CVS library of MPC a dll called mpcinfo (http://cvs.sourceforge.net/viewcvs.py/guliverkli/guliverkli/src/apps/mpcinfo/) that is not advertised too much if at all. The small doc refers to a usage as follows (sample usage):




alias mplayerc {
if ($dll(mpcinfo.dll,running,) != 2) {
if ($dll(mpcinfo.dll,file,) != $null) { me watches: $nopath($dll(mpcinfo.dll,file,)) ( $+ $dll(mpcinfo.dll,pos,) $+ ) Size: $round($calc($dll(mpcinfo.dll,size,) / 1024 / 1024 ),1) mb }
else { echo -a *** Couldn't retrive MplayerC information }
halt
}
else { echo -a *** Media Player Classic is not running }
}


I don't have time and maybe not the skills anymore to get this hooked-up into DVDspy but I thought it might be enough to motivate somebody else to jump on and do it!

That would be so OUTSTANDING!

Thanks in advance.

go69.

chros
November 13th, 2003, 03:55 AM
Well, here is the official MPC forum on www.doom9.net:
http://forum.doom9.org/showthread.php?s=896e614ed97d918327623b385f984c72&threadid=29798&perpage=20&pagenumber=61

Gabest has implemented an interal small web-server into the latest MPC (it's experimental yet), and I think he can fill any info into it ...

You'd welcome to that forum too ...

Greetings

chros
November 13th, 2003, 04:10 AM
I have checked the mpcinfo too: how can we use this dll file from Girder ?

go69
November 13th, 2003, 03:10 PM
I'm assuming that polling the status of MPC through this API and generating Girder events whenever there is something new/interesting should work. That would require another program to run... or a Girder plug-in I guess.

Maybe the way to go is to update DVDspy, I'll look into this...

go69.

chros
November 13th, 2003, 10:41 PM
Cool ! Have a good work !

TBD
November 13th, 2003, 11:10 PM
* detect focus of MPC

i've created a small plugin that gets the foreground window class and put it in a variable(register) called ClassWindow and also send an event (just for testing).

it is perfect if you want to have different actions/groups/menus ... based on the foreground window.

as the plugin is in beta stage (just started programming Girder plugins yesterday) I need some beta testing before releasing. if you want to, take a download (http://ollydbg.win32asmcommunity.net/stuph/ClassWindow.zip) and give some feedback.

thanks.

ps. plugin size 2560 bytes
[edit] back to 2048 bytes 8)

go69
November 14th, 2003, 09:20 AM
Cool, I'll give it a try during the week-end. But for doing that, I currently use a combination of TaskSwitch and TaskCreate (maybe TaskSwitch would be enough actually). The problem is that MPC is not detected.

Would your plug-in "replace" or offer an alternative to TaskSwitch or should we use in addition for detecting windows causing problems.

Thanks.

Go69.

TBD
November 16th, 2003, 09:35 PM
go69: it is more like an "IsForeground" command, but i liked to have the class of the foreground window in a register so i can use the Switch plugin to have different actions based on the foreground window.

so, nothing from your original request 8)

go69
December 3rd, 2003, 09:34 AM
Thanks to MMcM's help in understanding how DVDspy works, I've been able to get MPC to start firing events.

I still need to fix/test the CLOSE event detection. I'm trying to get Mike to release an updated version of DVDspy with those modifications in them as well.

Actually it works very much like Zoomplayer (appart from the LCD obviously) and for those who can't wait you can get a fix by renaming MPC in "zplayer.exe" and you'll see the zoomplayer events being fired...
Hey, I'm not saying it is the way to do it...just for fun!

I'll keep you posted.

go69.

chros
December 4th, 2003, 12:34 AM
I'll keep you posted.


Cool ! I can hardly wait it ! :)

Promixis
April 25th, 2004, 03:37 PM
Go69,

Did you ever get DVDSpy working with MPC? Also, does anyone have a MPC group?

danward79
April 27th, 2004, 11:45 AM
I would also be interested, if someone has done it or has a group

Dan

Promixis
May 14th, 2004, 05:24 AM
See the Exported Groups for a Media Player Classic GML.