raj10071997 / Alexa-Voice-Service

MIT License
15 stars 10 forks source link

how to control AudioPlayer Interface #10

Open kangshifu opened 6 years ago

kangshifu commented 6 years ago

hey,glad to be here to study your project about alexa,when i play a music,how to control it,eg:pause,resume,stop,the avs document give a complex status and we should send a seris of event to alexa,can you give me some advice

raj10071997 commented 6 years ago

I actually didn't implement the AudioPlayer interface so I can't tell much about it. But if you haven't read this Documentation then go through it as it gives an idea of how, when and what type of events and directives should be sent and received. Also in this Documentation read Channel heading as it gives a rough idea about how to handle the priority among the channels. I have only implemented the Dialog and Alert channels, but I don't remember if I have maintained the priority of these two channels as described in the documentation. Also when you ask "Alexa play some music" you will receive two directives as described in the example. You can also search for questions asked in the Amazon Developer Forum . If there is anything else feel free to ask. Glad to help..!!!