Kodi Community Forum

Full Version: default player for live tv, make it different then default player for local vids
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I really missed playing videos with VLC, so I followed this tutorial:

http://www.janosgyerik.com/using-xbmc-wi...al-player/

I figured the file on my windows box would be:
C:\Program Files (x86)\XBMC\system\playercorefactory.xml

so I edited it and used the quoted part at the bottom of this post.

but when I tried to launch a live tv channel, nothing happened, I mean it didn't quite work, which is fine by me
I mean I don't need vlc to watch live streams, just offline local files.

but I could figure out how exactly am I suppose to edit that file so that for live tv it would work differently
currently I am solving this by manually switching to the backed up original file before launching xbmc for live tv
and switching it back to the edited file when I'm planning to watch some local videos.


I would appreciate it if you guys could please show me what do I need to add/edit in that file below
so that it would behave in the default way for live tv and use vlc for local/lan files.



Quote:<?xml version="1.0" encoding="UTF-8"?>
<playercorefactory>
<players>
<player name="VLC" type="ExternalPlayer" video="true">
<filename>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</filename>
<args>--play-and-exit --video-on-top --fullscreen</args>
<forceontop>false</forceontop>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
</player>
<!-- 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 action="prepend">
<rule name="local-videos" audio="false" video="true"
internetstream="false" filetypes=".*" player="VLC" />
</rules>
<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>