Adds a button to adjust the play speed from the Android Auto media player. It's not a 1-to-1 match with the current android app play speed settings, but I did copy the existing preset options show in the android dialog.
Also save the speed setting so it stays set between plays
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/554
Author: @KeyboardHammer
Created: 2/6/2023
Status: ✅ Merged
Merged: 2/7/2023
Merged by: @advplyr
Base:
master← Head:aaSpeed📝 Commits (5)
23c90f4Add playback spped adjustment for Android Auto17a894fUpdate Android Auto playback speed string405cd21Emit playback speed change event when Android Auto changes speedb2b647efix float conversion, rounding for icons86c5d1aRefresh media session connector actions when changing speed on app. Update rounding values for Android Auto speed icons📊 Changes
37 files changed (+281 additions, -12 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/media/MediaManager.kt(+31 -1)📝
android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt(+20 -0)📝
android/app/src/main/java/com/audiobookshelf/app/player/PlayerConstants.kt(+1 -0)📝
android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt(+60 -11)📝
android/app/src/main/java/com/audiobookshelf/app/plugins/AbsAudioPlayer.kt(+4 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_0_5x.xml(+25 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_1_0x.xml(+27 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_1_2x.xml(+27 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_1_5x.xml(+27 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_2_0x.xml(+25 -0)➕
android/app/src/main/res/drawable-anydpi/ic_play_speed_3_0x.xml(+25 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_0_5x.png(+0 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_1_0x.png(+0 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_1_2x.png(+0 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_1_5x.png(+0 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_2_0x.png(+0 -0)➕
android/app/src/main/res/drawable-hdpi/ic_play_speed_3_0x.png(+0 -0)➕
android/app/src/main/res/drawable-mdpi/ic_play_speed_0_5x.png(+0 -0)➕
android/app/src/main/res/drawable-mdpi/ic_play_speed_1_0x.png(+0 -0)➕
android/app/src/main/res/drawable-mdpi/ic_play_speed_1_2x.png(+0 -0)...and 17 more files
📄 Description
Adds a button to adjust the play speed from the Android Auto media player. It's not a 1-to-1 match with the current android app play speed settings, but I did copy the existing preset options show in the android dialog.
Also save the speed setting so it stays set between plays
Implements #333
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.