summaryrefslogtreecommitdiff
path: root/pages/switch_channel.ecpp
blob: a777fc1f2a9508b798878079fc5d6fcb46b81c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%pre>
#include <vdr/channels.h>
#include "exception.h"
#include "tasks.h"
#include "tools.h"

using namespace vdrlive;

</%pre>
<%args>
	tChannelID channelid;
</%args>
<%cpp>
	reply.setContentType( "application/xml" );
</%cpp>
<?xml version="1.0"?>
<service>
<request name="switch_channel">
<param name="channel"><$ *channelid.ToString() $></param>
</request>
<response><$ LiveTaskManager().Execute( new SwitchChannelTask( channelid ) ) $></response>
</service>