Implement Alexa.SeekController Interface for media_player in Alexa (#28299)
* Implement Alexa.SeekController Interface for Alexa * Added error handling and duration checks. * Split out media_player SeekController tests and added error test.
This commit is contained in:
1 parent
bfe4a85e9d
commit
ff5b070f4b
5 files changed
+190
-9
No files matched your search
@@ -52,6 +52,7 @@ from .capabilities import (
|
||||
AlexaRangeController,
|
||||
AlexaSceneController,
|
||||
AlexaSecurityPanelController,
|
||||
AlexaSeekController,
|
||||
AlexaSpeaker,
|
||||
AlexaStepSpeaker,
|
||||
AlexaTemperatureSensor,
|
||||
@@ -425,6 +426,9 @@ class MediaPlayerCapabilities(AlexaEntity):
|
||||
yield AlexaPlaybackController(self.entity)
|
||||
yield AlexaPlaybackStateReporter(self.entity)
|
||||
|
||||
if supported & media_player.const.SUPPORT_SEEK:
|
||||
yield AlexaSeekController(self.entity)
|
||||
|
||||
if supported & media_player.SUPPORT_SELECT_SOURCE:
|
||||
yield AlexaInputController(self.entity)
|
||||
|
||||
|
||||
Reference in new issue
Block a user