public class HomeTheaterResource extends Object
| Constructor and Description |
|---|
HomeTheaterResource(SonosApiClient apiClient)
Constructor for HomeTheaterResource.
|
| Modifier and Type | Method and Description |
|---|---|
SonosSuccess |
loadHomeTheater(String clientToken,
String playerId)
Set the specified player to use its optical or HDMI input.
|
SonosSuccess |
setTvPowerState(String clientToken,
String playerId,
SonosTvPowerState tvPowerState)
Instruct the specified player to set the attached device to the specified power state using HDMI.
|
public HomeTheaterResource(SonosApiClient apiClient)
Constructor for HomeTheaterResource.
apiClient - a SonosApiClient object.public SonosSuccess loadHomeTheater(String clientToken, String playerId) throws SonosApiClientException, SonosApiError
clientToken - for the userplayerId - to set to home theater modeSonosApiClientException - if an error occurs during the callSonosApiError - if there is an error from the APIpublic SonosSuccess setTvPowerState(String clientToken, String playerId, SonosTvPowerState tvPowerState) throws SonosApiClientException, SonosApiError
clientToken - for the userplayerId - to transmit the power state throughtvPowerState - chosen SonosTvPowerStateSonosApiClientException - if an error occurs during the callSonosApiError - if there is an error from the APICopyright © 2018. All rights reserved.