Help with getting xbmc to launch MPC-HD

Soldato
Joined
25 May 2011
Posts
3,299
I am trying to use mpc as my default player but unsure how to edit the config file. mine currently looks like this..... mpc is installed in C .... program files x86 MPC-HD folder.... could anyone be kind enough to edit the script correctly so I can copy and paste?

<?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="rtv" protocols="rtv" player="DVDPlayer" />
<rule name="hdhomerun/myth/mms/udp" protocols="hdhomerun|myth|cmyth|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="DVDPlayer" />

<!-- 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>
 
Best place to ask is the kodi (xbmc) fourms. They are fantastic! Probably already in there if you search for it.
 
That looks way more complicated than it needs to be - here's my playercorefactory.xml (using MPC-BE as the default player but obviously the same principle):

Code:
<playercorefactory>
	<players>
		<!-- MPC-BE default external player -->
		<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
			<filename>C:\Program Files (x86)\MPC-BE\mpc-be.exe</filename>
			<args>"{1}" /fullscreen</args>
			<hidexbmc>false</hidexbmc>
                        <hideconsole>false</hideconsole>
                        <warpcursor>false</warpcursor>     
		</player>
	</players>
	<rules action="prepend">		                               
		<!-- Default player for specified file types-->
		<rule filetypes="avi|mkv|mp4|ogm|ts|divx|ts.ifo|m2ts|wmv" player="MPC-BE"/>
	</rules>
</playercorefactory>


Also, is your playercorefactory.xml in the right place - it needs to be in C:\Users\%user%\AppData\Roaming\XBMC\userdata ?
 
Back
Top Bottom