Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3fa04773
Commit
3fa04773
authored
Sep 22, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web intf: fix reading position from status.xml
parent
c7978950
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
share/lua/http/js/common.js
share/lua/http/js/common.js
+4
-0
share/lua/http/js/controlers.js
share/lua/http/js/controlers.js
+1
-1
No files found.
share/lua/http/js/common.js
View file @
3fa04773
...
...
@@ -12,6 +12,10 @@ function format_time( s ){
seconds
=
seconds
<
10
?
"
0
"
+
seconds
:
seconds
;
return
hours
+
"
:
"
+
minutes
+
"
:
"
+
seconds
;
}
function
toFloat
(
text
)
{
return
parseFloat
(
text
.
replace
(
'
,
'
,
'
.
'
));
}
function
setIntv
(){
if
(
intv
>
0
){
intv
++
;
...
...
share/lua/http/js/controlers.js
View file @
3fa04773
...
...
@@ -10,7 +10,7 @@ function updateStatus(){
$
(
'
#mediaTitle
'
).
append
(
$
(
'
[name="filename"]
'
,
data
).
text
());
$
(
'
#totalTime
'
).
append
(
format_time
(
$
(
'
length
'
,
data
).
text
()));
$
(
'
#currentTime
'
).
append
(
format_time
(
$
(
'
time
'
,
data
).
text
()));
$
(
'
#seekSlider
'
).
slider
({
value
:
(
$
(
'
position
'
,
data
).
text
()
*
100
)
});
$
(
'
#seekSlider
'
).
slider
({
value
:
toFloat
(
$
(
'
position
'
,
data
).
text
())
*
100
});
$
(
'
#currentVolume
'
).
append
(
Math
.
round
(
$
(
'
volume
'
,
data
).
text
()
/
5.12
)
+
'
%
'
);
$
(
'
#volumeSlider
'
).
slider
({
value
:
(
$
(
'
volume
'
,
data
).
text
()
/
5.12
)
});
$
(
'
#rateSlider
'
).
slider
({
value
:
(
$
(
'
rate
'
,
data
).
text
())
});
...
...
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