From 1392fac78df86911e33cb3f186cfed1fb225a70f Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Thu, 7 Jul 2011 19:12:25 +0300 Subject: Hack for playing from fifo in VLC --- src/webvicli/webvicli/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3