Свойство | Тип | Описание | |
---|---|---|---|
$alarms | duncan3dc\Sonos\Alarm[] | null | Alarms that are available on the current network. | |
$cache | Doctrine\Common\Cache\Cache | The cache object to use for the expensive multicast discover to find Sonos devices on the network. | |
$logger | Psr\Log\LoggerInterface | The logging object. | |
$multicastAddress | string | The multicast address to use for SSDP discovery. | |
$networkInterface | string | The network interface to use for SSDP discovery. | |
$playlists | Playlists[] | null | Playlists that are available on the current network. | |
$speakers | duncan3dc\Sonos\Speaker[] | null | Speakers that are available on the current network. |
Метод | Описание | |
---|---|---|
__construct ( Doctrine\Common\Cache\Cache $cache = null, Psr\Log\LoggerInterface $logger = null ) | Create a new instance. | |
clearTopology ( ) : static | Reset any previously gathered speaker information. | |
createPlaylist ( $name ) : duncan3dc\Sonos\Playlist | Create a new playlist. | |
getAlarmById ( $id ) : duncan3dc\Sonos\Alarm | null | Get alarms for the specified id. | |
getAlarms ( ) : duncan3dc\Sonos\Alarm[] | Get all the alarms available on the network. | |
getController ( ) : |
Get a Controller instance from the network. | |
getControllerByIp ( string $ip ) : |
Get the coordinator for the specified ip address. | |
getControllerByRoom ( string $room ) : |
Get the coordinator for the specified room name. | |
getControllers ( ) : |
Get all the coordinators on the network. | |
getLogger ( ) : Psr\Log\LoggerInterface | Get the logger object to use. | |
getNetworkInterface ( ) : string | integer | null | Get the network interface currently in use | |
getPlaylistById ( $id ) : duncan3dc\Sonos\Playlist | Get the playlist with the specified id. | |
getPlaylistByName ( $name ) : duncan3dc\Sonos\Playlist | null | Get the playlist with the specified name. | |
getPlaylists ( ) : duncan3dc\Sonos\Playlist[] | Get all the playlists available on the network. | |
getRadio ( ) : duncan3dc\Sonos\Services\Radio | Get a Radio instance for the network. | |
getRadioShows ( ) : |
Get the favourite radio shows. | |
getRadioStations ( ) : |
Get the favourite radio stations. | |
getSpeakerByRoom ( string $room ) : duncan3dc\Sonos\Speaker | null | Get a speaker with the specified room name. | |
getSpeakers ( ) : duncan3dc\Sonos\Speaker[] | Get all the speakers on the network. | |
getSpeakersByRoom ( string $room ) : duncan3dc\Sonos\Speaker[] | Get all the speakers with the specified room name. | |
hasPlaylist ( $name ) : boolean | Check if a playlist with the specified name exists on this network. | |
setLogger ( Psr\Log\LoggerInterface $logger ) : static | Set the logger object to use. | |
setMulticastAddress ( $multicastAddress ) : static | Set the multicast address to use for SSDP discovery. | |
setNetworkInterface ( $networkInterface ) : static | Set the network interface to use for SSDP discovery. |
Метод | Описание | |
---|---|---|
getCacheKey ( ) | ||
getDevices ( ) : string[] | Get all the devices on the current network. |
public __construct ( Doctrine\Common\Cache\Cache $cache = null, Psr\Log\LoggerInterface $logger = null ) | ||
$cache | Doctrine\Common\Cache\Cache | The cache object to use for the expensive multicast discover to find Sonos devices on the network |
$logger | Psr\Log\LoggerInterface | The logging object |
public clearTopology ( ) : static | ||
Результат | static |
public createPlaylist ( $name ) : duncan3dc\Sonos\Playlist | ||
Результат | duncan3dc\Sonos\Playlist |
public getAlarmById ( $id ) : duncan3dc\Sonos\Alarm | null | ||
Результат | duncan3dc\Sonos\Alarm | null |
public getAlarms ( ) : duncan3dc\Sonos\Alarm[] | ||
Результат | duncan3dc\Sonos\Alarm[] |
public getController ( ) : |
||
Результат |
public getControllerByIp ( string $ip ) : |
||
$ip | string | The ip address of the speaker |
Результат |
public getControllerByRoom ( string $room ) : |
||
$room | string | The name of the room to look for |
Результат |
public getControllers ( ) : |
||
Результат |
protected getDevices ( ) : string[] | ||
Результат | string[] | An array of ip addresses |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
Результат | Psr\Log\LoggerInterface | $logger The logging object |
public getPlaylistById ( $id ) : duncan3dc\Sonos\Playlist | ||
Результат | duncan3dc\Sonos\Playlist |
public getPlaylistByName ( $name ) : duncan3dc\Sonos\Playlist | null | ||
Результат | duncan3dc\Sonos\Playlist | null |
public getPlaylists ( ) : duncan3dc\Sonos\Playlist[] | ||
Результат | duncan3dc\Sonos\Playlist[] |
public getRadio ( ) : duncan3dc\Sonos\Services\Radio | ||
Результат | duncan3dc\Sonos\Services\Radio |
public getRadioShows ( ) : |
||
Результат |
public getRadioStations ( ) : |
||
Результат |
public getSpeakerByRoom ( string $room ) : duncan3dc\Sonos\Speaker | null | ||
$room | string | The name of the room to look for |
Результат | duncan3dc\Sonos\Speaker | null |
public getSpeakers ( ) : duncan3dc\Sonos\Speaker[] | ||
Результат | duncan3dc\Sonos\Speaker[] |
public getSpeakersByRoom ( string $room ) : duncan3dc\Sonos\Speaker[] | ||
$room | string | The name of the room to look for |
Результат | duncan3dc\Sonos\Speaker[] |
public hasPlaylist ( $name ) : boolean | ||
Результат | boolean |
public setLogger ( Psr\Log\LoggerInterface $logger ) : static | ||
$logger | Psr\Log\LoggerInterface | |
Результат | static |
public setMulticastAddress ( $multicastAddress ) : static | ||
Результат | static |
public setNetworkInterface ( $networkInterface ) : static | ||
Результат | static |
protected Alarm[],duncan3dc\Sonos|null $alarms | ||
Результат | duncan3dc\Sonos\Alarm[] | null |
protected Cache,Doctrine\Common\Cache $cache | ||
Результат | Doctrine\Common\Cache\Cache |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |
protected string $multicastAddress | ||
Результат | string |
protected string $networkInterface | ||
Результат | string |
protected Playlists[]|null $playlists | ||
Результат | Playlists[] | null |
protected Speaker[],duncan3dc\Sonos|null $speakers | ||
Результат | duncan3dc\Sonos\Speaker[] | null |