(2016-02-12, 07:00)yougood Wrote: [ -> ]Here is my modified playcorefactory from Derek, I will test it later when I am home
DSplayer with Madvr by default play: MKV and AVI
MPC-HC with Madvr will play : mov,mts,ts,vob,bdmv and http
DVDPlayer (Kodi player) will play : all streaming
DVDPlayer (Kodi player) will play VD and DVD Images also can play with MPC-HC
<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>
<rules action="prepend">
<!-#- DSplayer by default with Madvr play: MKV and AVI -#->
<!-#- MPC-HC will play : mov,mts,ts,vob,bdmv and http -#->
<rule filetypes="divx|ogm|mp4|mov|m4v|flv|m2v|mpeg|mpg|mts|m2ts|vob|bdmv" player="MPC-HC">
<rule protocols="http|https" player="MPC-HC"/>
<!-#- DVDPlayer will play : all streaming -#->
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="DVDPlayer"/>
<!-#- DVDPlayer will play VD and DVD Images also can play with MPC-HC-#->
<rule name="dvd" dvd="true" player="DVDPlayer" />
<rule name="dvdimage" dvdimage="true" player="DVDPlayer" />
</rules>
</players>
</playercorefactory>
I place this file in C:\Users\HD\AppData\Roaming\Kodi\userdata it won't work at all. After google digging , I found out there is another playcorefactory in C:\Program Files\Kodi\system so I modify both playcorefactory file as following
in C:\Users\HD\AppData\Roaming\Kodi\userdata
<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>
</playercorefactory>
And in C:\Program Files\Kodi\system
<?xml version="1.0" encoding="UTF-8"?>
<playercorefactory>
<players>
<!-- These are compiled-in as re-ordering them would break scripts
The following aliases may also be used:
audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer
<player name="DVDPlayer" audio="true" video="true" />
<player name="DVDPlayer" /> placeholder for MPlayer
<player name="PAPlayer" audio="true" />
-->
</players>
<rules name="system rules">
<rule name="mms/udp" protocols="mms|mmsh|udp" player="DVDPlayer" />
<rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />
<rule name="rtmp" protocols="rtmp" player="videodefaultplayer" />
<!-- dvdplayer can play standard rtsp streams -->
<rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)" player="PAPlayer" />
<!-- Internet streams -->
<rule name="streams" internetstream="true">
<rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp" player="DVDPlayer" />
<rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
</rule>
<!-- DVDs -->
<rule name="dvd" dvd="true" player="DVDPlayer" />
<rule name="dvdimage" dvdimage="true" player="MPC-HC" />
<rule name="ex-player" filetypes="ts|mpeg|mpg|mts|m2ts|vob|bdmv" player="MPC-HC" />
<!-- Only dvdplayer can handle these normally -->
<rule name="sdp/asf" filetypes="sdp|asf" player="DVDPlayer" />
<!-- Pass these to dvdplayer as we do not know if they are audio or video -->
<rule name="nsv" filetypes="nsv" player="DVDPlayer" />
<!-- pvr radio channels should be played by dvdplayer because they need buffering -->
<rule name="radio" filetypes="pvr" filename=".*/radio/.*" player="DVDPlayer" />
</rules>
</playercorefactory>
After edit both file, Kodi play all file type as expected:
DSplayer with Madvr by default play: MKV and AVI
MPC-HC with Madvr will play : mov,mts,ts,vob,bdmv and http
DVDPlayer (Kodi player) will play : all streaming
DVDPlayer (Kodi player) will play
VD and DVD Images also can play with MPC-HC