question

JohnSpurlock avatar image
JohnSpurlock asked

Where is the player side of the api?

Is there documentation on the protocol for registering as an available endpoint device for a given user, and receiving playback commands?

video skill api
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

GadgetChannel avatar image
GadgetChannel answered

As I understand it, the Alexa.Discovery interface of the Video Skill API handles discovering devices, and players would count as devices:

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-discovery

Your Lambda code would need to respond to an Alexa.Discovery request with a list of the devices, indicating which interfaces they support (Alexa.RemoteVideoPlayer, Alexa.PlaybackController, and Alexa.ChannelController). It should then respond to requests of those interface types directed to that particular device by sending a request to that device to handle the request from Alexa (search for content and start playing it, pause/resume playback, or change channel).

This is basically very similar to how Smart Home Skills work, with Alexa sending a discovery request to find the smart devices supported by your skill and then sending requests to control those devices.

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

You're right, thanks! I was reading the docs completely backwards at first (thinking the example responses were from the service itself).

0 Likes 0 ·