blob: 91f4f302b582a21bd28d94ab43b417ec66027f08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<%pre>
#include <vdr/channels.h>
#include "exception.h"
#include "tasks.h"
#include "tools.h"
using namespace vdrlive;
</%pre>
<%args>
tChannelID param;
</%args>
<%cpp>
reply.setContentType( "application/xml" );
SwitchChannelTask task( param );
LiveTaskManager().Execute( task );
</%cpp>
<?xml version="1.0"?>
<service>
<request name="switch_channel">
<param name="channel"><$ param $></param>
</request>
<response><$ task.Result() $></response>
<error><$ task.Error() $></error>
</service>
|