Line;533637 Wrote: 
> 
> Here are the contents of the strings file accompanying the switch
> player plugin
> 
> ...
> 
> Are these commands that I should use to perform the switching? And how
> can I send CLI commands to the squeezebox server?
> Thanks!
> 
You will need to look in the Plugin.pm file, the strings.txt just
contains strings for the different languages supported.

By looking at the Switch Player plugin code, the CLI command
implemented by the Switch Player plugin looks like this (switching from
00:00:00:00:00:01 to 00:00:00:00:00:02):

Code:
--------------------
    
  switchplayer from:00:00:00:00:00:01 to:00:00:00:00:00:02
  
--------------------


And from perl in a plugin you can call it as:

Code:
--------------------
    
  Slim::Control::Request::executeRequest(undef, ['switchplayer', 
"from:00:00:00:00:00:01, "to:00:00:00:00:00:00:02"]);
  
--------------------


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=77212

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

Reply via email to