exemple:
- Code: Tout sélectionner
<?xml version="1.0" encoding="UTF-8"?>
<playercorefactory>
<players>
<!-- External Player -->
<player name="ExtPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-BE x64\mpc-be64.exe</filename>
<args>"{1}"</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
<playcountminimumtime>180</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|avi|bdmv|mp4|wmv|mpg|ifo|ts|m2ts" player="ExtPlayer" />
<rule filetypes="mp3|flac|wav|wma" player="ExtPlayer" />
<rule name="htsp/pvr" protocols="htsp|pvr" filetypes="pvr" player="VideoPlayer" />
<rule name="https" protocols="https" player="VideoPlayer" />
</rules>
<rules name="system rules">
<rule name="mms/udp" protocols="mms|mmsh|udp" player="VideoPlayer" />
<rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />
<rule name="rtmp" protocols="rtmp" player="VideoPlayer" />
<!-- VideoPlayer can play standard rtsp streams -->
<rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)" player="PAPlayer" />
<!-- Internet streams -->
<rule name="streams" internetstream="true">
<!-- flv -->
<rule name="flv/aacp/sdp" mimetypes="video/x-flv|video-flv|audio/aacp|application/sdp" player="VideoPlayer" />
<rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
</rule>
<!-- DVDs -->
<rule name="DVD" DVD="true" player="ExtPlayer" />
<rule name="dvdfile" dvdfile="true" player="VideoPlayer" />
<rule name="dvdimage" dvdimage="true" player="VideoPlayer" />
<!-- Only VideoPlayer can handle these normally -->
<rule name="sdp/asf" filetypes="sdp|asf" player="VideoPlayer" />
<!-- Pass these to VideoPlayer as we do not know if they are audio or video -->
<rule name="nsv" filetypes="nsv" player="VideoPlayer" />
<!-- pvr radio channels should be played by VideoPlayer because they need buffering -->
<rule name="radio" filetypes="pvr" filename=".*/radio/.*" player="VideoPlayer" />
</rules>
</playercorefactory>