feat: vivo 车联投屏歌词功能适配(vivo joviincar lycics show on car)) - #1013
Closed
7tattoo wants to merge 1 commit into
Closed
Conversation
新增 CarLyricsManager 和 CarLyricsConstants 实现 vivo JoviInCar/uCar 歌词投屏协议的双通道推送(Metadata Channel + Extras Channel)。 核心改动: - 新增 logic/car/CarLyricsConstants.kt:协议常量定义 - 新增 logic/car/CarLyricsManager.kt:歌词状态管理、双通道数据构建、 变化检测、lyricInfo 镜像键(解决 MediaMetadata.equals() 忽略 extras 导致车载端无法感知歌词更新的问题) - 修改 EndedWorkaroundPlayer.kt:getState() 注入式元数据方案, 替代 replaceMediaItem 避免无限反馈循环导致 ANR - 修改 GramophonePlaybackService.kt:集成歌词推送链路, 加载中状态、切歌刷新、开关即时生效 - 新增设置页车机歌词开关(strings/settings/shortcuts) 修复: - 播放卡死闪退:replaceMediaItem 触发 onPositionDiscontinuity 反馈循环 → 改为状态注入 - 车载一直显示 -1:MediaMetadata.equals() 忽略 extras → 利用 lyricInfo 键触发 onMediaMetadataChanged
Member
|
Thanks for the PR, can you please translate the description to English? Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 CarLyricsManager 和 CarLyricsConstants 实现 vivo JoviInCar/uCar 歌词投屏协议的双通道推送(Metadata Channel + Extras Channel)。
核心改动:
修复: