summaryrefslogtreecommitdiff
path: root/pages/play_recording.ecpp
blob: 3d9535252872bf784257a62b857135c62f3e554e (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
27
28
29
30
31
32
33
<%pre>
#include <string>
#include <vdr/recording.h>
#include "exception.h"
#include "setup.h"
#include "tasks.h"
#include "tools.h"

using namespace std;
using namespace vdrlive;

</%pre>
<%args>
	string param;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<%cpp>
	if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
	reply.setContentType( "application/xml" );

	ReplayRecordingTask task( param );
	LiveTaskManager().Execute( task );
</%cpp>
<?xml version="1.0"?>
<service>
<request name="play_recording">
<param name="recording"><$ param $></param>
</request>
<response><$ task.Result() $></response>
<error><$ task.Error() $></error>
</service>