2022-04-18, 18:07
I recently tried to setup mpc-hc as external player for Kodi and found that the sample playercorefactory.xml sample in the first few posts no longer work. After some investigation I managed to make it work with the following:
<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>
<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|iso|mpls" player="MPC-HC"/>
<rule dvdimage="true" player="MPC-HC"/>
<rule dvdfile="true" player="MPC-HC"/>
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="VideoPlayer"/>
</rules>
</playercorefactory>
The specific changes are the inclusion of mpls filetypes (for bdmv folder rip), two additional rules for DVD image and folder rip, and some clean up.
Hope this will be useful to others.
<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>
<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|iso|mpls" player="MPC-HC"/>
<rule dvdimage="true" player="MPC-HC"/>
<rule dvdfile="true" player="MPC-HC"/>
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="VideoPlayer"/>
</rules>
</playercorefactory>
The specific changes are the inclusion of mpls filetypes (for bdmv folder rip), two additional rules for DVD image and folder rip, and some clean up.
Hope this will be useful to others.