Custom configuration for XBMC to use VLC for local video files only, and continue to use the built-in player for others. playercorefactory.xml.
Jan 26th, 2015
So the default video player can be changed in the advancedsettings.xml file but this would change for all files, wheras i want x265 only to be played by the tv. So below is the playercorefactory file which outputs mkv x265 to a DLNA renderer which is automatically picked up in osmc. In your sdcard, place playercorefactory.xml in the userdata folder using the following path. All Kodi external players are configured in a single file called playercorefactory.xml. By default, the playercorefactory.xml file does not exist and you must create one to open this functionality. This file must be created in the Kodi userdata folder. To get there, go to the following path. Kodi lets you override the built in video player and use an external video player, by creating a text file called playercorefactory.xml We will define ffmpeg.
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- Credits
- Staticadk (xbmcandroid.com/forums)
- -->
- <playercorefactory>
- <!-- MXPlayer Free definition -->
- <playername='MX Playerfree'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.mxtech.videoplayer.ad</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- MX Player Pro definition -->
- <playername='MX Player Pro'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.mxtech.videoplayer.pro</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Plex definition -->
- <playername='Plex'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.plexapp.plex</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Avia definition -->
- <playername='Avia'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.videon.android.mediaplayer</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- VLC Player definition -->
- <playername='VLC'type='ExternalPlayer'audio='false'video='true'>
- <filename>org.videolan.vlc</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Allcast definition -->
- <playername='Allcast'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.koushikdutta.cast</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- RockPlayer Lite definition -->
- <playername='RockPlayerLite'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.redirectin.rockplayer.android.unified.lite</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- BubbleUPnP definition -->
- <playername='BubbleUPnP'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.bubblesoft.android.bubbleupnp</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Gallery definition -->
- <playername='Gallery'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.android.gallery3d</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Vget definition -->
- <playername='Vget'type='ExternalPlayer'audio='false'video='true'>
- <filename>mb.videoget</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- LocalCast definition -->
- <playername='Localcast'type='ExternalPlayer'audio='false'video='true'>
- <filename>de.stefanpledl.localcast</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Chrome definition -->
- <playername='Chrome'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.android.chrome</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- AllConnect definition -->
- <playername='AllConnect'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.tuxera.streambels</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- ES File Explorer definition -->
- <playername='ES File Explorer'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.estrongs.android.pop</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- VEGA Cast definition -->
- <playername='VEGA Cast'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.dkc.video.vcast</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- CheapCast definition -->
- <playername='CheapCast'type='ExternalPlayer'audio='false'video='true'>
- <filename>at.maui.cheapcast</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Cast2TV-PRO definition -->
- <playername='Cast2TV-PRO'type='ExternalPlayer'audio='true'video='true'>
- <filename>com.ytweb</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Cast2TV-LITE definition -->
- <playername='Cast2TV-Lite'type='ExternalPlayer'audio='true'video='true'>
- <filename>com.ytweblite</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Simple Cast definition -->
- <playername='Simple Cast'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.haramitare.simplecast</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Web Video Caster definition -->
- <playername='Web Video Caster'type='ExternalPlayer'audio='false'video='true'>
- <filename>com.instantbits.cast.webvideo</filename>
- <hidexbmc>true</hidexbmc>
- <!-- After 2 minutes bump the play count of the item in XBMC -->
- </player>
- <!-- Cast2TV-PRO Pro is default
- change player= value to one of the above names to change this -->
- <!-- rtmp Streams -->
- <ruleprotocols='http'player='Cast2TV-Lite'/>
- <ruleprotocols='rtmpe'player='Cast2TV-Lite'/>
- <!-- rtsp Streams -->
- <!-- Video files -- Default rule (last to ensure above trigger first makes Cast2TV-PRO default for all playback -->
- </rules>
RAW Paste Data
This tutorial will show you how to stream Kodi (XBMC) from your Windows computer to your Google Chromecast. The tutorial uses a script to stream videos from Kodi to the Google Chrome browser and then from Chrome to your Chromecast. This is a more effective method than casting your screen or window (which is usually pretty laggy) because the video is streaming from the Chromecast, not from your computer to the Chromecast. You will be able to stream movies and TV shows from your PC to your TV.
1. Download Google Chrome.
2. Install Google Cast to Google Chrome.
File Playercorefactory Xml Files
3. Download the playercorefactory.xml file:
4. Move the playercorefactory.xml file to: C:Users<username>AppDataRoamingKodiuserdata
5. Right-click playercorefactory.xml and hit “Edit”.
6. Change the following line to the location of Google Chrome (skip step if current location is correct):
<filename>C:Program Files (x86)GoogleChromeApplicationchrome.exe</filename>
Playercorefactory.xml File
7. Launch Kodi and stream a video.
8. The video will launch in Chrome. Press on the Google Cast icon and select your Chromecast.
Note: All videos in Kodi will launch will launch in Chrome now. To play video in Kodi, simply rename the playercorefactory.xml file (located in C:Users<username>AppDataRoamingKodiuserdata) to playercorefactory.xml.txt.
Note: This method is not 100% effective. The Chrome browser doesn’t play all file types, therefore certain streams will cause the browser to download the movie instead of streaming it in the browser. In this case, we recommend that you try another stream. If no other streams are available, you can cast your screen to the Chromecast (this method may be laggy).
To cast your screen, you will need Google Chrome and the Google Cast extension.
Playercorefactory Xml File All Cast
Press the Google Cast icon, press on the dropdown button, and press “Cast screen/window”.
Please let us know if you have any questions or comments. We appreciate all feedback!