Kodi Community Forum

Full Version: Enable VLC as default player for ALL video files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm running XBMC on ubuntu and the regular default xbmc player is very choppy. VLC however tends to work better so I was wondering how I can change the script to change all video files. I have found a script from a previous thread and copied it into the playercorefactory.xml but it only worked for avi files. So how can I add additional file formats to tell XBMC to play it on VLC media player?

This is the code I got for only avi files.

Code:
<playercorefactory>
<players>
<player name="vlc" type="ExternalPlayer" audio="false" video="true">
<filename>/usr/bin/vlc</filename>
<args>--fullscreen</args>
<hideconsole>true</hideconsole>
<hidecursor>true</hidecursor>
<forceontop>true</forceontop>
</player>
</players>
<rules action="prepend">
<rule filetypes="avi" filename="*.avi" player="vlc"/>
</rules>
</playercorefactory>


Any help is appreciated. I'm not very good at scripting so its basics....
Have you tried changing -

Code:
<rule filetypes="avi" filename="*.avi" player="vlc"/>

to

Code:
<rule filetypes="avi, mp4, mp3, mk3" filename="*.avi, *.mp4, *.mp3, *.mkv" player="vlc"/>
Nope that doesn't seem to work, it just reverts everything back into the regular player
Do I have to make an additional rule?
Try changing <rule> to:
Code:
<rule filetypes="avi" player="vlc"/>
For multiple filetypes:
Code:
<rule filetypes="avi|mkv|mp4|mpg" player="vlc"/>