Kodi Community Forum
Internal and external players rule - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Internal and external players rule (/showthread.php?tid=369225)



Internal and external players rule - harimakenjibr - 2022-08-11

1. Debug log: https://pastebin.com/D8jiBDUF
3. Kodi 19.4.0
4. Linux Lite 6.0 (based on Ubuntu 22.04 LTS)
5. CPU: Intel i3-12100 x64, GPU: integrated intel UHD 730
6. Built-in, updated with apt-get
7. Git: 20220409-nogitfound
8. Renamed the addons folder
9. I used to watch all videos with VLC, but now I have a 4k TV and VLC doesn't handle HDR well. I'm trying to make a rule that opens 1080p video in VLC and 2160p in the Kodi player. I tried making 2 rules in playercorefactory.xml but can't make it work. VLC opens all videos, as seen on the debug log.

xml:
<playercorefactory>
  <players>
    <player name="VLC" type="ExternalPlayer" audio="false" video="true">
      <filename>/usr/bin/vlc</filename>
      <args>--fullscreen "{1}"</args>
      <hidexbmc>false</hidexbmc>
    </player>
  </players>
  <rules action="prepend">
  <rule video="true" player="videoplayer">
    <rule dvd="true" player="dvdplayer"/>
    <rule filename=".*1080p.*|" player="VLC"/>
   </rule>
  </rules>
</playercorefactory>



RE: Internal and external players rule - harimakenjibr - 2022-08-14

I got it. Changed the rule "filetype" for "resolution":
xml:
<playercorefactory>
  <players>
    <player name="VLC" type="ExternalPlayer" audio="false" video="true">
      <filename>/usr/bin/vlc</filename>
      <args>--fullscreen "{1}"</args>
      <hidexbmc>false</hidexbmc>
    </player>
  </players>
  <rules action="prepend">
    <rule video="true" player="VideoPlayer">
      <rule videoresolution="1080" player="VLC"/>
    </rule>
  </rules>
</playercorefactory>



RE: Internal and external players rule - harimakenjibr - 2022-08-14

(2022-08-11, 00:23)harimakenjibr Wrote:
xml:
<playercorefactory>
    <rule filename=".*1080p.*|" player="VLC"/>
The problem was the "|" after ".*1080p.*".