Media Player Classic

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 4046
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Media Player Classic

Post by kgschlosser » Wed May 31, 2017 6:39 am

I am looking into seeing if possibly maybe it can be done. I would need to ask the developers of the mpc-be if they have they have the original Microsoft API for controlling the thing. well errr... at least I think it's a Microsoft API I gotta check into that as well.

I have swapped out the things necessary to make it use the mpc-be version but with no success so far. I could have missed a step somewhere.
If you like the work I have been doing then feel free to Image

scorpy
Posts: 1
Joined: Sat Nov 25, 2017 7:11 pm

Re: Media Player Classic

Post by scorpy » Sat Nov 25, 2017 7:24 pm

Well, I switched to MPC-BE too and naturally, missed this plugin. Went looking around the source and... i think i got it.
I edited EventGhost\plugins\MediaPlayerClassic\__init__.py, replaced "MediaPlayerClassicW" with "MPC-BE" (there were 2 matches).
Saved file, exited Eventghost, deleted __init__.pyc and ran Eventghost again. Voila, it works :D

User avatar
kgschlosser
Site Admin
Posts: 4046
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Media Player Classic

Post by kgschlosser » Tue Nov 28, 2017 5:05 pm

GREAT news!

You should modify the plugin to have a drop down box in the config to select if they want to use Media Player Classic or the BE version. we can have it populate the drop down box by checking the registry to see what is installed and if only one of them is then it will use it. but if both are installed give the user the option to.

You do the code and i will point you where you need to change things and give you pointers on what needs to be done and added. If ya want. It's a great way to learn.
If you like the work I have been doing then feel free to Image

Foune
Experienced User
Posts: 94
Joined: Sun Jul 03, 2011 7:08 pm

Re: Media Player Classic

Post by Foune » Tue Nov 28, 2017 6:34 pm

Awesome news, I was missing this plugin since I switched to mpcbe.

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako » Thu Nov 30, 2017 7:32 am

I'd like to share your enthusiasm, but it's not nearly as great as it seems.
Yes, some (maybe most) things work with MPC-BE.
But not all of them. For example, the "On Screen Go To ..." action is unfortunately one of them. For me personally, this is a necessary action. I use it very often.
kgschlosser wrote:
Tue Nov 28, 2017 5:05 pm
You should modify the plugin to have a drop down box in the config to select if they want to use Media Player Classic or the BE version. we can have it populate the drop down box by checking the registry to see what is installed and if only one of them is then it will use it. but if both are installed give the user the option to.
I think a cleaner solution is to make a separate plugin for MPC-BE. Of course, this would only include actions that work.
Maybe even the action "On Screen Go To ..." could work. But it would have to be programmed a bit differently than MPC-HC plugin. I can try it.
I have learned that the MPC-HC development has been stopped. That's a shame, it's the best video playback program for me. For now, fortunately, there is no reason to change it.
But it is clear that this can happen. Therefore, it would be good to have an alternative.

Pako

User avatar
kgschlosser
Site Admin
Posts: 4046
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Media Player Classic

Post by kgschlosser » Thu Nov 30, 2017 8:01 am

whatever you would like to do Pako. I have not personally tested MPC-BE with this plugin. so i do not know what does and does not work.

I was personally thinking since MPC-BE, MPC-HC and Media Player Classic are for the most part are based off the same core program it would be nicer to have them all wrapped up into one plugin. this would reduce the code footprint on the things that do work. and being able to deny access to specific actions based on the MPC flavor would not be that hard. and it could be set to multiload so if more then one of the players is installed you would have the ability to control them.

Whichever way you think is best.
If you like the work I have been doing then feel free to Image

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako » Thu Nov 30, 2017 5:16 pm

The situation seems to be better than I thought originally. Before that, I had some version 1.5.1 installed.
Now I downloaded the latest version 1.5.2 (build 3148) beta.
It works much better!
Even the "On Screen Go To ..." action is already working!
Now, the option to make a plugin common to both programs looks more realistic.

Pako

User avatar
kgschlosser
Site Admin
Posts: 4046
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Media Player Classic

Post by kgschlosser » Fri Dec 01, 2017 1:51 am

awesome!. that's a good thing. and also hopefully will be a suitable replacement for ya
If you like the work I have been doing then feel free to Image

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako » Sun Dec 03, 2017 4:17 pm

I made the first version of the plugin that is common to MPC-HC and MPC-BE.
This is certainly not perfect, but the vast majority of actions work in both cases.

Pako
Attachments
__init__.py
Version 2.13
(112.19 KiB) Downloaded 72 times
You know flattr ? You can Image

Foune
Experienced User
Posts: 94
Joined: Sun Jul 03, 2011 7:08 pm

Re: Media Player Classic

Post by Foune » Sun Dec 17, 2017 8:14 pm

Awesome. I use both MPC-HC and MPC-BE (one is for my LCD and the other for my projector), even if this plugin doesn't accept multiple instances now I can get my automation working with MPC-BE.

MXKM
Posts: 2
Joined: Sat Jan 20, 2018 9:21 am

Re: Media Player Classic

Post by MXKM » Sat Jan 20, 2018 9:13 pm

Pako wrote:
Sun Dec 03, 2017 4:17 pm
I made the first version of the plugin that is common to MPC-HC and MPC-BE.
This is certainly not perfect, but the vast majority of actions work in both cases.

Pako
Thank you Pako.

Post Reply