IMPLEMENTING VOICE CONTROL WITH THE ANDROID MEDIA SESSION API ON AMAZON FIRE TV
summary
Claim: voice control on Fire TV maps directly to Android MediaSession callbacks so it largely “just works” with standard APIs — only one manifest permission is needed. Implementation uses VideoView or ExoPlayer, MediaController, MediaSession with PlaybackStateCompat, lifecycle handling (onPause/onResume/onDestroy), and callbacks for play/pause/seek/next/previous; Alexa intent timings auto-convert so seek-to milliseconds auto-resolved and far‑field commands handle seconds/minutes/hours. Amazon also provides Fire App Builder, a preconfigured template that demos and ships working voice controls out of the box.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 2:06Rise of TV as a content platform
- 4:32Fire TV devices and farfield controls
- 6:26Fire TV Cube and voice integration
- 7:28Media session basics and setup
- 12:47Initializing media session and controller
- 16:20Configuring media session actions
- 19:11Setting playback state and focus
- 20:58Managing media session lifecycle
- 25:33Implementing media session callbacks
- 32:00Voice controls and standard media sessions
- 33:23Fire App Builder for TV apps
- 38:23Resources and closing remarks
related talks
37mCreating Engaging Android TV and Fire TV Apps with Native and Cross-Platform Tools
28mExpand your Android app beyond the phone
33mAndroid Wear, TV, Auto & Media: Technical Lightning talks!
34mTalk: Developing Media Streaming Android Apps..
41mBest practices for developing on Android TV
06mAndroid: Navigate the ABC iView app using voice commands
27mSession 1: Connect your Android app to Google Assistant
41mHow to Build an Android TV Media Application Launcher
