blob: 0fc1a3c02ab1c6d59e4bcc8c060e9e843a361f01 (
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
|
<%pre>
#include <vdr/config.h>
#include "setup.h"
#include "grab.h"
using namespace vdrlive;
</%pre>
<%args>
int quality = 80;
int width = 320;
int height = 240;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<%cpp>
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
reply.setContentType("image/jpg");
GrabImageInfo image = LiveGrabImageManager().GetImage();
if ( image.second > 0 )
reply.out().write( image.first.get(), image.second );
</%cpp>
|