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
@@ -1175,3 +1175,14 @@ class AlexaPlaybackStateReporter(AlexaCapability):
|
||||
return {"state": "PAUSED"}
|
||||
|
||||
return {"state": "STOPPED"}
|
||||
|
||||
|
||||
class AlexaSeekController(AlexaCapability):
|
||||
"""Implements Alexa.SeekController.
|
||||
|
||||
https://developer.amazon.com/docs/device-apis/alexa-seekcontroller.html
|
||||
"""
|
||||
|
||||
def name(self):
|
||||
"""Return the Alexa API name of this interface."""
|
||||
return "Alexa.SeekController"
|
||||
Reference in new issue
Block a user