From efae654ee9b0c27238a98cd2fd658cab7534549e Mon Sep 17 00:00:00 2001 From: Yoann Peronneau Date: Wed, 14 Jun 2006 18:31:45 +0000 Subject: [PATCH] * web interface: add a snapshot button --- modules/control/http/rpn.c | 18 ++++++++++++++++++ share/http/dialogs/main | 5 +++++ share/http/images/snapshot.png | Bin 0 -> 270 bytes share/http/js/functions.js | 4 ++++ share/http/requests/status.xml | 3 +++ 5 files changed, 30 insertions(+) create mode 100644 share/http/images/snapshot.png diff --git a/modules/control/http/rpn.c b/modules/control/http/rpn.c index 5d857d475c..0bf7e10b5e 100644 --- a/modules/control/http/rpn.c +++ b/modules/control/http/rpn.c @@ -1062,6 +1062,24 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars, free( psz_cmd ); free( psz_error ); } + else if( !strcmp( s, "snapshot" ) ) + { + if( p_sys->p_input ) + { + vout_thread_t *p_vout; + p_vout = vlc_object_find( p_sys->p_input, + VLC_OBJECT_VOUT, FIND_CHILD ); + + if( p_vout ) + { + vout_Control( p_vout, VOUT_SNAPSHOT ); + vlc_object_release( p_vout ); + msg_Dbg( p_intf, "requested snapshot" ); + } + } + break; + + } else { E_(SSPush)( st, s ); diff --git a/share/http/dialogs/main b/share/http/dialogs/main index 3cac7c04ba..30fde00ef3 100644 --- a/share/http/dialogs/main +++ b/share/http/dialogs/main @@ -81,6 +81,11 @@ sout and playlist . Fullscreen   + +