2015-03-28, 18:52
(2015-03-28, 18:05)lewwatt Wrote: I've just recently set up and configured Kodi, and have it pretty much how I want it. My library is functional, but there is one aspect missing from the whole set-up which is crucial: I want to be able to use MPC-HC as my player, for all video files, rather than Kodi's in-house player.
I've read up on the wiki, and the external players section, which seemed pretty conclusive and straightforward, so I went ahead and created my xml file and saved it as '*C:\Users\lewwatt\AppData\Roaming\Kodi\userdata\playercorefactory.xml*':
Quote: <playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\KCP\MPC-HC</filename>
<args>"{1}"</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
</playercorefactory>
It has enabled the context menu in Kodi, so I can select 'play with > MPC-HC', but once I select it, there is a brief, instantaneous flash of the screen where the program attempts to do something, before reverting back to Kodi, as it was.
Am I doing something wrong? Do I need additional programs or files?- I was under the impression that this was supported natively and that the playercorefactory xml file was all that was necessary.
Any help will be greatly appreciated, as this program is very promising, and I'm glad to have it running as I want it, after months of considering doing something about my ailing video library. I just need this part to work, and everything will fall together.
I think the problem might be in your <filename> line. It needs to be an actual full filename, usually the executable, for the program you want to use. For instance, mine is:
<filename>C:\Program Files (X86)\MPC-HC\mpc-hc.exe</filename>
Once you get that working, so it shows up as a choice under Play using... , then add this code to your playercorefactory.xml file to make it play all videos (above the ending </playercorefactory> tag):
<rules action="prepend">
<rule video="true" player="MPC-HC" />
</rules>