mherger wrote: 
> > Can you tell me the equivalent SqueezeJS commands for "pause" and
> > "play"?
> 
> SqueezeJS.Controller.playerControl(['play']) etc. You can basically use
> 
> any CLI command calling playerControl().
> 
> -- 
> 
> Michael
Have tried the code below but 'back' and 'next' do not work.  Am I using
the correct commands?  Thanks.


Code:
--------------------
    
  <script type="text/javascript" src="/html/ext/mousetrap.js"></script>
  <script type="text/javascript">
        Mousetrap.bind ('up', function() {SqueezeJS.Controller.setVolume(0.5, 
'+')});
        Mousetrap.bind ('down', function() {SqueezeJS.Controller.setVolume(0.5, 
'-')});
        Mousetrap.bind ('left', function() 
{SqueezeJS.Controller.playerControl(['back'])});
        Mousetrap.bind ('right', function() 
{SqueezeJS.Controller.playerControl(['next'])});
        Mousetrap.bind ('space', function() 
{SqueezeJS.Controller.playerControl(['pause'])});
  </script>
  
--------------------


The "Help" link at bottom of web GUI is not working for me (Logitech
Media Server Version: 7.9.1 - 1503129892 @ Sat Aug 19 08:18:19 CUT
2017).


------------------------------------------------------------------------
Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738
View this thread: http://forums.slimdevices.com/showthread.php?t=107501

_______________________________________________
diy mailing list
diy@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to