]> git.sesse.net Git - vlc/commitdiff
Added forward and rewind (30s) buttons to mobile HTTP remote control
authorCarlos Fenollosa <carlos.fenollosa@gmail.com>
Wed, 18 Mar 2015 17:43:23 +0000 (18:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Mar 2015 15:14:31 +0000 (16:14 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
share/lua/http/css/mobile.css
share/lua/http/mobile.html

index 717fc50515d22f891a7dbf3e5b300ebea8850250..e50333467f69e8373c436b618b3d2762dacd323b 100644 (file)
@@ -105,6 +105,12 @@ body{
 #buttonStop{
        background-position: -576px 0px;
 }
+#buttonRewd{
+       background-position: -528px 0px;
+}
+#buttonFwrd{
+       background-position: -96px 0px;
+}
 .playing {
        background-position: -336px 0px;
 }
index f296c66ec39f5c319bf7d603dde5b7d5ab977b4f..475ab30ef7c3704fc9d7f877091c681002907876 100644 (file)
                                        }
                                        return false;
                                });
+                $('#buttonRewd').click(function(){
+                    sendCommand({'command': 'seek', 'val': '-30S'});
+                    return false;
+                });
+                $('#buttonFwrd').click(function(){
+                    sendCommand({'command': 'seek', 'val': '+30S'});
+                    return false;
+                });
                        })
                </script>
        </head>
                <div id="play_controls">
                        <div id="buttons">
                                <div id="buttonPrev" class="button48  ui-corner-all" title="Previous"></div>
+                               <div id="buttonRewd" class="button48  ui-corner-all" title="Rewind"></div>
                                <div id="buttonPlay" class="button48  ui-corner-all paused" title="Play"></div>
                                <div id="buttonStop" class="button48  ui-corner-all" title="Stop"></div>
+                               <div id="buttonFwrd" class="button48  ui-corner-all" title="Forward"></div>
                                <div id="buttonNext" class="button48  ui-corner-all" title="Next"></div>
                        </div>
                        <div id="seekSlider" title="Seek Time" style="font-size:15px;"></div>