Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a0d30029
Commit
a0d30029
authored
Sep 18, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luaHTTP: behave like oldHTTP for seeking
Close #5345 Patch by jikuja
parent
3a6c8349
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
share/lua/http/js/controlers.js
share/lua/http/js/controlers.js
+1
-1
share/lua/http/js/ui.js
share/lua/http/js/ui.js
+2
-2
No files found.
share/lua/http/js/controlers.js
View file @
a0d30029
...
...
@@ -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
:
(
$
(
'
time
'
,
data
).
text
()
/
$
(
'
length
'
,
data
).
text
()
*
100
)
})
$
(
'
#seekSlider
'
).
slider
({
value
:
(
$
(
'
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
())
});
...
...
share/lua/http/js/ui.js
View file @
a0d30029
...
...
@@ -8,7 +8,7 @@ $(function(){
$
(
"
#currentTime
"
).
empty
().
append
(
format_time
(
Math
.
round
((
ui
.
value
/
100
)
*
$
(
'
#seekSlider
'
).
attr
(
'
totalLength
'
)))
);
switch
(
current_que
){
case
'
main
'
:
sendCommand
({
'
command
'
:
'
seek
'
,
'
val
'
:
Math
.
round
((
ui
.
value
/
100
)
*
$
(
'
#seekSlider
'
).
attr
(
'
totalLength
'
))
});
sendCommand
({
'
command
'
:
'
seek
'
,
'
val
'
:
(
ui
.
value
)
+
'
%
'
});
break
;
case
'
stream
'
:
sendVLMCmd
(
'
control Current seek
'
+
ui
.
value
);
...
...
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