This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
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.
Close #1473
PR 类型
这个 PR 的目的是什么?
Bug 修复
当前行为是什么?
#1473
_systemMediaTransportControls
在跳轉分 P 後會被重製為 null,因此阻止系統休眠/系統播放控件不再生效新的行为是什么?
_systemMediaTransportControls
現在會被重新初始化,以此再次阻止系統休眠並正確設置系統播放控件PR 检查清单
请检查你的 PR 是否满足以下要求:
备注
這個算是個臨時的解法,我覺得更好的是同一個影片的不同分段共用一個
_systemMediaTransportControls
,set/reset 僅會發生在進入/離開播放頁時發生,可以稍微減少資源占用,不過代碼修改會稍大一些。