From 1fb6f8a9c540407d56acf501e5c0a80faf1ddc89 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 20 Dec 2007 18:52:44 +0000 Subject: - vlc now also works with remote adresses like dyndns --- pages/vlc.ecpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pages/vlc.ecpp') 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(streamdevPort) + + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString(); - string videourl = string("http://") + request.getServerIp() + ":" + lexical_cast(streamdevPort) + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString(); + string server = request.getHost(); + server = server.substr(0, server.rfind(':')); + string videourl = string("http://") + server + ":" + lexical_cast(streamdevPort) + "/" + LiveSetup().GetStreamdevType() + "/" + *Channel->GetChannelID().ToString(); <& vlc.channel_selection &> -- cgit v1.2.3