summaryrefslogtreecommitdiffstats
path: root/system/playercorefactory.xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 18:07:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 18:07:22 +0000
commitc04dcc2e7d834218ef2d4194331e383402495ae1 (patch)
tree7333e38d10d75386e60f336b80c2443c1166031d /system/playercorefactory.xml
parentInitial commit. (diff)
downloadkodi-c04dcc2e7d834218ef2d4194331e383402495ae1.tar.xz
kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.zip
Adding upstream version 2:20.4+dfsg.upstream/2%20.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'system/playercorefactory.xml')
-rw-r--r--system/playercorefactory.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/system/playercorefactory.xml b/system/playercorefactory.xml
new file mode 100644
index 0000000..f928311
--- /dev/null
+++ b/system/playercorefactory.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<playercorefactory>
+ <players>
+ <!-- These are compiled-in as re-ordering them would break scripts
+ The following aliases may also be used:
+ audiodefaultplayer, videodefaultplayer, videodefaultVideoPlayer
+ <player name="VideoPlayer" audio="true" video="true" />
+ <player name="VideoPlayer" /> placeholder for MPlayer
+ <player name="PAPlayer" audio="true" />
+ -->
+ </players>
+
+ <rules name="system rules">
+ <rule name="mms/udp" protocols="mms|mmsh|udp" player="VideoPlayer" />
+ <rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />
+ <rule name="rtmp" protocols="rtmp" player="videodefaultplayer" />
+
+ <!-- VideoPlayer 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="VideoPlayer" />
+ <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
+ </rule>
+
+ <!-- DVDs -->
+ <rule name="dvd" dvd="true" player="VideoPlayer" />
+ <rule name="discimage" discimage="true" game="false" player="VideoPlayer" />
+
+ <!-- Only VideoPlayer can handle these normally -->
+ <rule name="sdp/asf" filetypes="sdp|asf" player="VideoPlayer" />
+
+ <!-- Pass these to VideoPlayer as we do not know if they are audio or video -->
+ <rule name="nsv" filetypes="nsv" player="VideoPlayer" />
+
+ <!-- pvr radio channels should be played by VideoPlayer because they need buffering -->
+ <rule name="radio" filetypes="pvr" filename=".*/radio/.*" player="VideoPlayer" />
+ </rules>
+</playercorefactory>