From 600227043a817c2c911d021ba78b9739b4e92088 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 22 Dec 2007 18:15:46 +0000 Subject: - Almost full featured javascript controlling interface for the vlc window. --- pages/vlc.ecpp | 72 +++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 18 deletions(-) (limited to 'pages/vlc.ecpp') diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp index d7a7d43..a080262 100644 --- a/pages/vlc.ecpp +++ b/pages/vlc.ecpp @@ -48,7 +48,31 @@ using namespace vdrlive; <& pageelems.ajax_js &> <%cpp> } + else { + +<%cpp> + } + + + <%cpp> @@ -56,36 +80,48 @@ using namespace vdrlive; <& pageelems.logo &> <& menu active="vlc" &> +
<%cpp> } -
<%cpp> - if ( Channel != 0 ) { - int streamdevPort = LiveSetup().GetStreamdevPort(); - // string videourl = string("http://") + "192.168.96.30" + ":" + 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(); + if ( Channel != 0 ) { + int streamdevPort = LiveSetup().GetStreamdevPort(); + 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 &> -

<$ videourl $>

+ + <& vlc.controls videourl=(videourl) asyncReq=(asyncReq) &> <%cpp> - } + } + if (!asyncReq) {
+<%cpp> + } + <%include>page_exit.eh -<%def channel_selection> -
- - - - - +<%def controls> +<%args> + string videourl; + bool asyncReq; + +
+ + + +<%cpp> + if (asyncReq) { + + +<%cpp> + } + +

<$ videourl $>

-- cgit v1.2.3