question

newuser-56abb7e4-6b73-417c-a137-1f81b428f889 avatar image
newuser-56abb7e4-6b73-417c-a137-1f81b428f889 asked ·

Media Session Integration-Android- How can i distinguish between the Alexa "rewind" "forward" voice command call backs

Im using the MediaSession api for integrating the voice commands into my android video player.

Im able to perform commands "play" "pause" "fast forward" and "rewind" , but the problem is with the "rewind" and "fast forward" commands which im unable to distinguish the callback. Both call backs are returned from "onSeekTo(long)" method.

For eg: Lets say "Alexa fast forward 10 sec" the onSeekTo(long) method at first receives "10000ms" later if we try again saying the same it returns different values.

Also for "Alexa rewind 10sec" it does the same.

And im unable to distinguish between the rewind and fast forward outputs.


https://developer.amazon.com/docs/fire-tv/mediasession-api-integration.html#set-the-media-session-callback-actions

fire tvalexaandroid
10 |2000 characters needed characters left characters exceeded

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

0 Answers