]> git.sesse.net Git - vlc/commitdiff
web intf: fix volume on the 200% base
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 24 Sep 2011 15:27:00 +0000 (17:27 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 24 Sep 2011 15:30:14 +0000 (17:30 +0200)
share/lua/http/js/controlers.js
share/lua/http/js/ui.js

index 0febc4e61b52286e0fcb72e9d11d3810f4825aa9..b74a8de6315b40ef905742a4b2925c6c9883c309 100644 (file)
@@ -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');
index 5bce9153b9eaec4c754a4a2571296aa92be79601..8a3f1c0dea05807255602d44db403fe7be5a1041 100644 (file)
@@ -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)