diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-12-20 18:52:44 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-12-20 18:52:44 +0000 |
commit | 1fb6f8a9c540407d56acf501e5c0a80faf1ddc89 (patch) | |
tree | 311fe63064e779cb6969377814c8f24fba5d7230 /pages/vlc.ecpp | |
parent | b9f31f086607b0732cdcace6319c6787b0932d75 (diff) | |
download | vdr-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.ecpp | 4 |
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 &> |