summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2010-11-06 10:56:55 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2010-11-06 10:56:55 +0200
commit0975d8aa6cd8655c94661987a9ee03e11e0330d5 (patch)
tree380b382feae7802669481bd67e7df8aff6a787cf /src
parent04c364be7443c17866a20fbb92458e3f5f1a9f82 (diff)
downloadvdr-plugin-webvideo-0975d8aa6cd8655c94661987a9ee03e11e0330d5.tar.gz
vdr-plugin-webvideo-0975d8aa6cd8655c94661987a9ee03e11e0330d5.tar.bz2
Better error message when trying to stream rtmp video
Diffstat (limited to 'src')
-rw-r--r--src/vdr-plugin/webvideo.c2
-rw-r--r--src/webvicli/webvicli/client.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/vdr-plugin/webvideo.c b/src/vdr-plugin/webvideo.c
index 90e018a..002c58d 100644
--- a/src/vdr-plugin/webvideo.c
+++ b/src/vdr-plugin/webvideo.c
@@ -254,6 +254,8 @@ void cPluginWebvideo::HandleFinishedRequests(void)
streamurl = req->GetResponse();
if (streamurl[0] == '\0')
Skins.Message(mtError, tr("Streaming failed: no URL"));
+ else if (strncmp(streamurl, "wvt://", 6) == 0)
+ Skins.Message(mtError, tr("Streaming not supported, try downloading"));
else if (!StartStreaming(streamurl))
Skins.Message(mtError, tr("Failed to launch media player"));
break;
diff --git a/src/webvicli/webvicli/client.py b/src/webvicli/webvicli/client.py
index 6618ec3..c1fd1d1 100644
--- a/src/webvicli/webvicli/client.py
+++ b/src/webvicli/webvicli/client.py
@@ -437,6 +437,10 @@ class WVClient:
print 'Did not find URL'
return False
+ if streamurl.startswith('wvt://'):
+ print 'Streaming not supported, try downloading'
+ return False
+
# Found url, now find a working media player
for player in self.streamplayers:
if '%s' not in player: