Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
efae654e
Commit
efae654e
authored
Jun 14, 2006
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* web interface: add a snapshot button
parent
ef4685ad
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
0 deletions
+30
-0
modules/control/http/rpn.c
modules/control/http/rpn.c
+18
-0
share/http/dialogs/main
share/http/dialogs/main
+5
-0
share/http/images/snapshot.png
share/http/images/snapshot.png
+0
-0
share/http/js/functions.js
share/http/js/functions.js
+4
-0
share/http/requests/status.xml
share/http/requests/status.xml
+3
-0
No files found.
modules/control/http/rpn.c
View file @
efae654e
...
...
@@ -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
);
...
...
share/http/dialogs/main
View file @
efae654e
...
...
@@ -81,6 +81,11 @@ sout and playlist .
<span
class=
"btn_text"
>
Fullscreen
</span>
</button>
<button
id=
"btn_snapshot"
onclick=
"snapshot();"
onmouseover=
"button_over(this);"
onmouseout=
"button_out(this);"
title=
"Take video snapshot"
>
<img
src=
"images/snapshot.png"
alt=
"Take video snapshot"
/>
<span
class=
"btn_text"
>
Take video snapshot
</span>
</button>
<button
id=
"btn_volume_down"
onclick=
"volume_down();"
onmouseover=
"button_over(this);"
onmouseout=
"button_out(this);"
title=
"Decrease Volume"
>
<img
src=
"images/volume_down.png"
alt=
"Decrease Volume"
/>
<span
class=
"btn_text"
>
Decrease Volume
</span>
...
...
share/http/images/snapshot.png
0 → 100644
View file @
efae654e
270 Bytes
share/http/js/functions.js
View file @
efae654e
...
...
@@ -377,6 +377,10 @@ function fullscreen()
{
loadXMLDoc
(
'
requests/status.xml?command=fullscreen
'
,
parse_status
);
}
function
snapshot
()
{
loadXMLDoc
(
'
requests/status.xml?command=snapshot
'
,
parse_status
);
}
function
update_status
()
{
loadXMLDoc
(
'
requests/status.xml
'
,
parse_status
);
...
...
share/http/requests/status.xml
View file @
efae654e
...
...
@@ -91,6 +91,9 @@
<vlc
id=
"rpn"
param1=
"'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get ! 'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_set"
/>
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"command value 'snapshot' strcmp 0 ="
/>
<vlc
id=
"rpn"
param1=
"snapshot"
/>
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"command value 'volume' strcmp 0 ="
/>
<vlc
id=
"rpn"
param1=
"val value vlc_volume_set"
/>
<vlc
id=
"end"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment