2016-01-29, 19:58
(2016-01-29, 18:19)Cr4z33 Wrote: I am running Kodi under Windows 10 Pro 64 bit and I have installed MPC-HC 64 bit.
For some reason I can't get MPC-HC running when I press play on Kodi.
My playercorefactory.xml looks as following:
Code:<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
</playercorefactory>
What is wrong?
I seemed to have the same problem. Explicitly stating the file types to be played by MPC-HC fixed it for me. I'm using the following code, copied from the first post. Note it includes the <playcountminimumtime>1140</playcountminimumtime> line which is used to set videos to "Watched" after 19 minutes of play time.
Code:
<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|avi|divx|ogm|mp4|mov|m4v|flv|m2v|mpeg|mpg|mts|m2ts|vob|bdmv" player="MPC-HC">
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="DVDPlayer"/>
</rule>
</rules>
</playercorefactory>
The following should be able to accomplish pretty much the same thing, replacing the entire rules section, but I haven't tried it yet:
Code:
<rules action="prepend">
<rule video="true" player="MPC-HC">
<rule internetstream="true" player="DVDPlayer" />
</rule>
</rules>