Add seek buttons to notification bar
Description
This MR introduces support for seek buttons in the notification bar. The icon appearance is driven by the enabled actions in the playback session. Inactive icons are now shown as shaded, which helps users understand when their button presses will be accepted or ignored. Podcast mode (shown below) incorporates the seek buttons in the compact view, otherwise prev/next will be shown.
Motivation and Context
This change is a continuation of adding support for seek buttons throughout the various playback control interfaces.
How Has This Been Tested?
Tested on a Pixel 3 running Android 11.
Screenshots
In the screenshot below a podcast is playing, the rate is set to 1.0x, and drawables exist for 10 second skip.
In the screenshot below a podcast is playing, the rate is set to 1.10x, and no drawables exist for the specific seek time.
In the screenshot below an audio file is playing, rate may be 1.0x (no notification bar control), and drawables exist for 10 second skip.
Types of changes
-
New feature (non-breaking change which adds functionality)
Checklist
-
I have read the CONTRIBUTING section of the README document.