diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-07-07 19:12:25 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-07-07 19:13:04 +0300 |
commit | 1392fac78df86911e33cb3f186cfed1fb225a70f (patch) | |
tree | a81371c668bfb5b36ee23c56e04fa2483b046193 /src | |
parent | d9c351d21c08cecceee47f8d4d13f8c5fec57922 (diff) | |
download | vdr-plugin-webvideo-1392fac78df86911e33cb3f186cfed1fb225a70f.tar.gz vdr-plugin-webvideo-1392fac78df86911e33cb3f186cfed1fb225a70f.tar.bz2 |
Hack for playing from fifo in VLC
Diffstat (limited to 'src')
-rw-r--r-- | src/webvicli/webvicli/client.py | 6 |
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 |