summaryrefslogtreecommitdiff
path: root/pages/vlc.ecpp
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-12-20 18:52:44 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-12-20 18:52:44 +0000
commit1fb6f8a9c540407d56acf501e5c0a80faf1ddc89 (patch)
tree311fe63064e779cb6969377814c8f24fba5d7230 /pages/vlc.ecpp
parentb9f31f086607b0732cdcace6319c6787b0932d75 (diff)
downloadvdr-plugin-live-1fb6f8a9c540407d56acf501e5c0a80faf1ddc89.tar.gz
vdr-plugin-live-1fb6f8a9c540407d56acf501e5c0a80faf1ddc89.tar.bz2
- vlc now also works with remote adresses like dyndns
Diffstat (limited to 'pages/vlc.ecpp')
-rw-r--r--pages/vlc.ecpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp
index d150347..d7a7d43 100644
--- a/pages/vlc.ecpp
+++ b/pages/vlc.ecpp
@@ -64,7 +64,9 @@ using namespace vdrlive;
if ( Channel != 0 ) {
int streamdevPort = LiveSetup().GetStreamdevPort();
// string videourl = string("http://") + "192.168.96.30" + ":" + lexical_cast<string,int>(streamdevPort) + + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString();
- string videourl = string("http://") + request.getServerIp() + ":" + lexical_cast<string,int>(streamdevPort) + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString();
+ string server = request.getHost();
+ server = server.substr(0, server.rfind(':'));
+ string videourl = string("http://") + server + ":" + lexical_cast<string,int>(streamdevPort) + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString();
</%cpp>
<embed type="application/x-vlc-plugin" name="video1" autoplay="yes" loop="yes" width="720" height="576" target="<$ videourl $>" />
<& vlc.channel_selection &>