From b9f31f086607b0732cdcace6319c6787b0932d75 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Wed, 19 Dec 2007 22:53:58 +0000 Subject: - Added option to select streamdev stream type in live setings. --- pages/setup.ecpp | 15 ++++++++++++++- pages/vlc.ecpp | 6 +++--- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'pages') diff --git a/pages/setup.ecpp b/pages/setup.ecpp index debd97c..548846f 100644 --- a/pages/setup.ecpp +++ b/pages/setup.ecpp @@ -23,6 +23,7 @@ using namespace std; string showInfoBox; string useStreamdev; string streamdevport; + string streamdevtype; int authchanged = 0; <%session scope="global"> @@ -61,6 +62,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); } LiveSetup().SetUseStreamdev(!useStreamdev.empty()); LiveSetup().SetStreamdevPort(streamdevport.empty() ? 3000 : lexical_cast(streamdevport)); + LiveSetup().SetStreamdevType(streamdevtype.empty() ? "PES" : streamdevtype); LiveSetup().SaveSetup(); message = tr("Setup saved."); } @@ -83,6 +85,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); showInfoBox = LiveSetup().GetShowInfoBox() ? "1" : ""; useStreamdev = LiveSetup().GetUseStreamdev() ? "1" : ""; streamdevport = lexical_cast(LiveSetup().GetStreamdevPort()); + streamdevtype = LiveSetup().GetStreamdevType(); <& pageelems.doc_type &> @@ -182,9 +185,19 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp index b8cea6f..d150347 100644 --- a/pages/vlc.ecpp +++ b/pages/vlc.ecpp @@ -63,12 +63,12 @@ using namespace vdrlive; <%cpp> if ( Channel != 0 ) { int streamdevPort = LiveSetup().GetStreamdevPort(); - // string videourl = string("http://") + "192.168.96.30" + ":" + lexical_cast(streamdevPort) + "/TS/" + *Channel->GetChannelID().ToString(); - string videourl = string("http://") + request.getServerIp() + ":" + lexical_cast(streamdevPort) + "/TS/" + *Channel->GetChannelID().ToString(); + // 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(); <& vlc.channel_selection &> - +

<$ videourl $>

<%cpp> } -- cgit v1.2.3