[vlc-commits] web intf: fix volume on the 200% base
Francois Cartegnie
git at videolan.org
Sat Sep 24 17:30:26 CEST 2011
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Sep 24 17:27:00 2011 +0200| [e63678cc26c7138f96b49b9d68a26696e88c5cbc] | committer: Francois Cartegnie
web intf: fix volume on the 200% base
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e63678cc26c7138f96b49b9d68a26696e88c5cbc
---
share/lua/http/js/controlers.js | 2 +-
share/lua/http/js/ui.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/share/lua/http/js/controlers.js b/share/lua/http/js/controlers.js
index 0febc4e..b74a8de 100644
--- a/share/lua/http/js/controlers.js
+++ b/share/lua/http/js/controlers.js
@@ -20,7 +20,7 @@ function updateStatus(){
$('#totalTime').append(format_time($('length',data).text()));
$('#currentTime').append(format_time($('time',data).text()));
$('#seekSlider').slider({value: toFloat($('position',data).text()) * 100 });
- $('#currentVolume').append(Math.round($('volume',data).text()/5.12)+'%');
+ $('#currentVolume').append(Math.round($('volume',data).text()/2.56)+'%');
$('#volumeSlider').slider({value: ($('volume',data).text()/5.12) });
$('#rateSlider').slider({value: ($('rate',data).text()) });
$('#currentRate').append(Math.round($('rate',data).text()*100)/100+'x');
diff --git a/share/lua/http/js/ui.js b/share/lua/http/js/ui.js
index 5bce915..8a3f1c0 100644
--- a/share/lua/http/js/ui.js
+++ b/share/lua/http/js/ui.js
@@ -22,7 +22,7 @@ $(function(){
min: 0,
max: 100,
stop: function( event, ui ) {
- $( "#currentVolume" ).empty().append( ui.value+"%" );
+ $( "#currentVolume" ).empty().append( ui.value * 2 +"%" );
sendCommand({
'command':'volume',
'val':Math.round(ui.value*5.12)
More information about the vlc-commits
mailing list