Conversation
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.
问题
getAndroidURL()已声明TerminalId: android,但在rateType=9时额外附加了ott=true。这会把同一登录态切换到电视/大屏权益校验;具备移动端 4K 权益的账号因此收到TIPS_NEED_MEMBER,随后被现有逻辑降到 1080P。同一账号、同一节目 ID、相同 Android 请求头的脱敏对照:
rateType=9&ott=trueTIPS_NEED_MEMBERrateType=9SUCCESSrateType=4SUCCESS去掉 OTT 标记后,中文解说主信号和 4K 赛场原声均实测为 HEVC 3840×2160、50 FPS、约 12.3 Mbps、PQ HDR/BT.2020。咪咕集锦/回放使用相同 Android 取流函数;实测完整回放恢复 4K50,最高只提供原画档的集锦仍正常返回 1080P50 HDR。
修改
仅移除
rateType=9时硬编码的ott=true。super4k、H.265、HDR 参数,以及TIPS_NEED_MEMBER后的 1080P/720P 降档逻辑全部保持不变。如果未来需要电视端 OTT 权益,建议做成独立显式配置,不与 Android 4K 请求绑定。
验证
node --check utils/androidURL.jsnode --check app.js本文及提交不包含账号、Token、签名播放地址或媒体分片。