How to: Use UPNP renderer as external player with playercorefactory.xml


I was looking at how to setup Kodi to always play certain files using an external player via dlna and just figured out how to do this the other day, so i thought Id post a how to for other folk who might be interested. I didnt see info like this anywhere in my searching so hopefully this is illuminating.

Ok so i just got a new tv which can play 10bit x265 files (which the pi cannot) therefore i want any and all files containing x265 to be played using my new tv rather than the pi.

This can be done using the Option button and then play using but there are guides on how to play file on android to an external player so I figured this must apply to linux too.

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.

The important part is the “type=“InternalPlayer”” you then just need to specify the name of the renderer to be the same as what kodi autodetects.

<?xml version="1.0" encoding="utf-8"?>
   <player name="50DX700_Series" type="InternalPlayer" audio="false" video="true">
 <rules action="prepend">
   <rule filetypes="mkv" filename=".*x265.*" player="50DX700_Series"/>

This “type=“InternalPlayer”” was literally not documented anywhere so hopefully anyone bashing their head against this problem will find this thread.