View Full Version : How do I use External Player as the default only for AVI files?
Is it possible to use an external player as the default player for avi and mpg file extensions, and use the internal player for everything else?
If so, how?
I would like to use zoomplayer with ffdshow hd upscaling for the sd-content, and internal player for dvd and above.
It's possible. Still waiting on documentation from the author of this latest improvement.
in the ticket 6383 the first patch i posted
externalplayerdefaultfor.patch is really working great
<externalplayer>
<filename>C:\Apps\mplayerww\mplayer.exe</filename>
<args>-slave -quiet -fs</args>
<forceontop>false</forceontop>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
<defaultfor>avi;mkv</defaultfor>
</externalplayer>
you only need to add this line to make it default for a specific extension.
Is this what's committed to regular SVN?
Is this what's committed to regular SVN?
No what is commited to the svn is what moby-uk did.
I posted 2 patch on this ticket which are completly different from what was commited to the svn.
The first i patch i did is using a new file called externalplayersettings.xml
<externalplayersettings>
<avi>
<filename>c:\apps\smplayer\smplayer.exe</filename>
<args>-fullscreen -close-at-end</args>
<forceontop>false</forceontop>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
<startuptime>2000</startuptime>
</avi>
and the second one use advancedsettings.xml as usual but add the settings
<defaultfor>avi;mkv</defaultfor>
if you really want it i can make a build from the latest svn revision.
I just took a took a look to what moby did and you can do what you want to do by modify the file playercorefactory.xml which is in the system directory of xbmc
<!-- DVDs -->
<rule dvd="true" player="videodefaultdvdplayer" />
<rule filetypes="avi" player="externalplayer" />
<rule dvdfile="true" player="videodefaultdvdplayer" />
<rule dvdimage="true" player="videodefaultdvdplayer" />
by adding the line in bold its going to make your externalplayer the default one for avi files
I just took a took a look to what moby did and you can do what you want to do by modify the file playercorefactory.xml which is in the system directory of xbmc
<!-- DVDs -->
<rule dvd="true" player="videodefaultdvdplayer" />
<rule filetypes="avi" player="externalplayer" />
<rule dvdfile="true" player="videodefaultdvdplayer" />
<rule dvdimage="true" player="videodefaultdvdplayer" />
by adding the line in bold its going to make your externalplayer the default one for avi filesThanks tiben20. Do you think you could write the documentation needed by checking moby's code?
He mentioned not having a lot of free time to dedicate, currently. Maybe you could help a lot of people... :)
if i explain to you in details how it work you could write it? Im french and i got some problem with making some nice text without any syntax error
if i explain to you in details how it work you could write it? Im french and i got some problem with making some nice text without any syntax errorI would be glad to help out, no problem.
If you wish, you can write to ashlar42 (AT) gmail.com and we'll take it from there.