External players: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Ashlar
(Using an external player with XBMC)
 
>Ashlar
Line 7: Line 7:


To customize playback behaviour, users need to create an extra playercorefactory.xml file inside their "'''\[[The UserData Folder|UserData]]\'''" folder.<BR>
To customize playback behaviour, users need to create an extra playercorefactory.xml file inside their "'''\[[The UserData Folder|UserData]]\'''" folder.<BR>
Please consult your [[Frequently_Asked_Questions|plaform specific FAQ]] for the appropriate location.<BR>
Please consult the [[Frequently_Asked_Questions|plaform specific FAQ]] for the appropriate location.<BR>
 
Let's start with an example playercorefactory.xml file:
<xml>
<playercorefactory>
  <players>
    <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Program Files\MPC-HC\mplayerc.exe</filename>
      <args>/fullscreen /close</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <hidecursor>false</hidecursor>
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mkv" filename=".*720p.*" player="MPC-HC"/>
  </rules>
</playercorefactory>
</xml>
 
The <players/> node defines all the different players that you wish to add to XBMC. Inside you can have a potentially infinite number of <player/> nodes, defining as many external players as you wish(the builtin ones being '''dvdplayer''' and '''paplayer''', you can also use the aliases '''audiodefaultplayer''', '''videodefaultplayer''', '''videodefaultdvdplayer''').


[[category:How To]]
[[category:How To]]

Revision as of 12:54, 7 July 2009

While the built in DVDplayer and PAPlayer are capable, out of the box, to handle a huge variety of content, users might find themselves in need of using a different playback software. Reasons might include improved postprocessing abilities, GPU accelerated video decoding and other special features not (yet) offered by the internal players. Thanks to several brave developers we have a powerful tool at our disposal: the external player option. By simply configuring the playercorefactory.xml file, we can alter the default player for different sources (videos, music, DVDs, etc.).

playercorefactory.xml

XBMC comes with a default playercorefactory.xml, located under the XBMC\System folder (where XBMC is the chosen installation folder).

To customize playback behaviour, users need to create an extra playercorefactory.xml file inside their "\UserData\" folder.
Please consult the plaform specific FAQ for the appropriate location.

Let's start with an example playercorefactory.xml file: <xml> <playercorefactory>

 <players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files\MPC-HC\mplayerc.exe</filename>
     <args>/fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <hidecursor>false</hidecursor>
   </player>
 </players>
 <rules action="prepend">
   <rule filetypes="mkv" filename=".*720p.*" player="MPC-HC"/>
 </rules>

</playercorefactory> </xml>

The <players/> node defines all the different players that you wish to add to XBMC. Inside you can have a potentially infinite number of <player/> nodes, defining as many external players as you wish(the builtin ones being dvdplayer and paplayer, you can also use the aliases audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer).