summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2011-07-07 19:12:25 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2011-07-07 19:13:04 +0300
commit1392fac78df86911e33cb3f186cfed1fb225a70f (patch)
treea81371c668bfb5b36ee23c56e04fa2483b046193
parentd9c351d21c08cecceee47f8d4d13f8c5fec57922 (diff)
downloadvdr-plugin-webvideo-1392fac78df86911e33cb3f186cfed1fb225a70f.tar.gz
vdr-plugin-webvideo-1392fac78df86911e33cb3f186cfed1fb225a70f.tar.bz2
Hack for playing from fifo in VLC
-rw-r--r--src/webvicli/webvicli/client.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/webvicli/webvicli/client.py b/src/webvicli/webvicli/client.py
index 0c86c0d..5af0abe 100644
--- a/src/webvicli/webvicli/client.py
+++ b/src/webvicli/webvicli/client.py
@@ -40,7 +40,7 @@ from . import menu
VERSION = '0.4.2'
# Default options
-DEFAULT_PLAYERS = ['vlc --play-and-exit "%s"',
+DEFAULT_PLAYERS = ['vlc --play-and-exit --file-caching 5000 "%s"',
'totem "%s"',
'mplayer "%s"',
'xine "%s"']
@@ -490,6 +490,10 @@ class WVClient:
playcmd = player + ' ' + streamurl
else:
try:
+ # Hack for playing from fifo in VLC
+ if 'vlc' in player and streamurl.startswith('file://'):
+ streamurl = 'stream://' + streamurl[len('file://'):]
+
playcmd = player % streamurl
except TypeError:
print 'Can\'t substitute URL in', player