AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

How to Listen for playback events(play/pause/next/previous) and route to Local app to play media

Open chowdary60 opened this issue 6 years ago • 3 comments

Hello @wblaschkovf ,@willblaschko, @wantitmore, @rohith-krish

I have developed Internet radio which is working in my android local system. I have the AlexaAndroid sample app installed in my system. How can i listen for playback events(play/pause/next/previous) when i speak to Alexa and how can I route to the listened events to my local app?

chowdary60 avatar Apr 12 '18 18:04 chowdary60

Any one has any idea how to implement them.

chowdary60 avatar Apr 19 '18 13:04 chowdary60

you write the correct the Context,and u will receive the response

wantitmore avatar Jun 15 '18 08:06 wantitmore

You will get AudioPlayer directives when you say pause/play/next/previous. See https://developer.amazon.com/docs/alexa-voice-service/audioplayer-overview.html

From here I would fire off an intent to your local app with the command that was received.

ihavenoface5 avatar Aug 03 '18 15:08 ihavenoface5