Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b6e03065
Commit
b6e03065
authored
Nov 01, 2004
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibility to set volume using %
parent
f0269f7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
modules/control/http.c
modules/control/http.c
+8
-0
share/http/index.html
share/http/index.html
+1
-1
No files found.
modules/control/http.c
View file @
b6e03065
...
...
@@ -1758,6 +1758,14 @@ static void MacroDo( httpd_file_sys_t *p_args,
msg_Dbg
(
p_intf
,
"requested volume set: -%i"
,
(
i_volume
-
i_value
)
);
}
}
else
if
(
strstr
(
vol
,
"%"
)
!=
NULL
)
{
i_value
=
atoi
(
vol
);
if
(
(
i_value
<=
100
)
&&
(
i_value
>=
0
)
){
aout_VolumeSet
(
p_intf
,
(
i_value
*
(
AOUT_VOLUME_MAX
-
AOUT_VOLUME_MIN
))
/
100
+
AOUT_VOLUME_MIN
);
msg_Dbg
(
p_intf
,
"requested volume set: %i%%"
,
atoi
(
vol
));
}
}
else
{
i_value
=
atoi
(
vol
);
if
(
(
i_value
<=
AOUT_VOLUME_MAX
)
&&
(
i_value
>=
AOUT_VOLUME_MIN
)
)
...
...
share/http/index.html
View file @
b6e03065
...
...
@@ -175,7 +175,7 @@
if
(
seconds
<
10
)
seconds
=
"
0
"
+
seconds
;
document
.
getElementById
(
'
length
'
).
innerHTML
=
hours
+
"
:
"
+
minutes
+
"
:
"
+
seconds
;
got_volume
=
<
vlc
id
=
"
value
"
param1
=
"
volume
"
/>
;
document
.
getElementById
(
'
volume
'
).
innerHTML
=
Math
.
floor
(
got_volume
*
100
/
1024
)
+
"
%
"
;
document
.
getElementById
(
'
volume
'
).
innerHTML
=
Math
.
ceil
(
got_volume
*
100
/
1024
)
+
"
%
"
;
</script>
</body>
</html>
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