summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/vlc.ecpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp
index aea5560..d1afd67 100644
--- a/pages/vlc.ecpp
+++ b/pages/vlc.ecpp
@@ -108,7 +108,12 @@ using namespace vdrlive;
videourl = string("http://") + server + ":" + lexical_cast<string,int>(streamdevPort) + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString();
}
else {
- videourl = string("http://") + server + "/recstream.html?recid=" + recid;
+#if TNTVERSION >= 1606
+# define SERVER_AND_PORT server
+#else
+# define SERVER_AND_PORT server + ":" + lexical_cast<string,int>(LiveSetup().GetServerPort());
+#endif
+ videourl = string("http://") + SERVER_AND_PORT + "/recstream.html?recid=" + recid;
}
</%cpp>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org/" version="VideoLAN.VLCPlugin.2" id="video1" name="video1" autoplay="yes" loop="no" width="720" height="576" target="<$ videourl $>" />