Kodi DSPlayer – DirectShow Player for Windows
(2018-04-25, 15:20)ausvette Wrote:
(2018-04-24, 15:53)Bibio Wrote: @ ausvette  try this:

<playercorefactory>
 <players>
<player name="MPC" type="ExternalPlayer" audio="false" video="true">
       <filename>C:\Users\Dave\AppData\Roaming\Kodi\userdata\Play3D.bat</filename>
       <args>"{1}"</args>
       <hidekodi>true</hidekodi>
       <hideconsole>true</hideconsole>
       <forceontop>false</forceontop>
       <playcountminimumtime>1140</playcountminimumtime>
    </player>
    </players>
 <rules action="prepend">
   <rule filetypes="mkv" player="dsplayer">
   <rule filetypes="iso" player="MPC">
  <rule filename=".*3D.*" player="MPC"/>
   </rule>
 </rule>
 </rules>
</playercorefactory>

from what i can see in your other code you have forgot to add the DOT before the * doing this will pick up any wildcard filename with or without 3D.
the above code should force dsplayer to play all mkv files except ones that meet the criteria of 3D in their filename.
all files with the extension iso will be played with MPC.

btw. kodi-dsplayerx64 is a bit buggy. been there tried that.
 Thanks Bibio.

I tried that.

Result was dsplayer was default player for all mkvs - whether they matched the rule or not.
Videoplayer was default for iso's
Mpc was listed as a player I could choose manually from the menu 
 remove <rule filetypes="mkv" player="dsplayer"> from the code and try that. i put this in as a test... but it was worth trying just in case.
dsplayer is the default player in kodi-ds so should play all files except those in the code playercorefactory code rules.

also remove one of the </rule> at the end

pay close attention to <rule filename=".*3D.*" player="MPC"/> the filename rule must start with a DOT then *3D.*
if you dont add the DOT then kodi will play all finenames with mpc as you are starting with a * (wildcard) which is all your filenames.

your code should now be:

<playercorefactory>
 <players>
<player name="MPC" type="ExternalPlayer" audio="false" video="true">
       <filename>C:\Users\Dave\AppData\Roaming\Kodi\userdata\Play3D.bat</filename>
       <args>"{1}"</args>
       <hidekodi>true</hidekodi>
       <hideconsole>true</hideconsole>
       <forceontop>false</forceontop>
       <playcountminimumtime>1140</playcountminimumtime>
    </player>
    </players>
 <rules action="prepend">
   <rule filetypes="iso" player="MPC">
  <rule filename=".*3D.*" player="MPC"/>
 </rule>
 </rules>
</playercorefactory>
Reply


Messages In This Thread
Lockup on STOP issue resolved! - by MKANET - 2015-04-11, 21:59
RE: 4G aware patch - by MagikMark - 2015-09-08, 03:27
Alt-F4 no longer quits - by JeffA - 2015-10-31, 20:38
H265 playback - by rew88 - 2017-11-04, 00:41
RE: H265 playback - by ashlar - 2017-11-04, 16:21
RE: H265 playback - by rew88 - 2017-11-05, 01:34
RE: H265 playback - by ashlar - 2017-11-05, 16:48
RE: H265 playback - by rew88 - 2017-11-05, 23:08
RE: H265 playback - by ashlar - 2017-11-06, 12:00
Leia 18 - by terpsarlington - 2017-11-21, 03:51
RE: Leia 18 - by spencerjford - 2017-11-21, 06:24
RE: Kodi DSPlayer – DirectShow Player for Windows - by Bibio - 2018-04-25, 16:36
Display Modes / Refresh Rates - by goofer69 - 2019-09-20, 00:19
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 00:39
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 19:35
DSPlayer 23.810 to 23.976 - by Runakanta - 2018-05-09, 03:24
RE: DSPlayer 23.810 to 23.976 - by Warner306 - 2018-05-10, 01:32
Logout Mark Read Team Forum Stats Members Help
Kodi DSPlayer – DirectShow Player for Windows47