question

mcochin avatar image
mcochin asked ·

Alexa voice command for video: fastforward and rewind not supported?

I have an video app for the FireTV and voice commands for play, pause, skipNext, skipPrev work fine, but when calling fastforward and rewind Alexa says it's "not supported".

I'm using MediaSessionCompat and MediaSessionCompat.Callback. In the Callback I have overridden onSeekTo, onRewind, and onFastForward but it still says it's not supported.

Also have the Alexa voice command permission in manifest

<uses-permission android:name="com.amazon.permission.media.session.voicecommandcontrol" />

My only hunch is that I might need to use the Video Skill API for that functionality.
Any insights Appreciated!

alexavideo skill api
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.

1 Answer

mcochin avatar image
mcochin answered ·

Turns out I didn't add the PlaybackState.ACTION_SEEK_TO action to the supported list of actions.

PlaybackStateCompat.Builder stateBuilder = new PlaybackStateCompat.Builder()
      .setActions(PlaybackState.ACTION_PLAY |
           PlaybackState.ACTION_PAUSE |
           PlaybackState.ACTION_PLAY_PAUSE |
  	   PlaybackState.ACTION_SKIP_TO_NEXT |
           PlaybackState.ACTION_SKIP_TO_PREVIOUS |
  	   PlaybackState.ACTION_FAST_FORWARD |
  	   PlaybackState.ACTION_REWIND |
  	   PlaybackState.ACTION_SEEK_TO); // NEED TO ADD SEEK_TO ACTION
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.