← Back to Pull requests

fix(tv): 默认关闭预先加载画质增强着色器 #3630

Open
unknown opened this pull request with 85 lines diff across 1 files
View on GitHub
unknown unknown commented on Oct 18, 2026 11:53 UTC
Author

背景

「预先加载画质增强着色器」在 Android TV 上默认开启。开启后,即使画质增强处于关闭状态,Media3 也会在首次 prepare 前建立空的 effect graph,视频改走 GPU 合成链路。这会让电视厂商的画质处理(例如运动补偿)可能失效甚至黑屏——选项描述里已有此提示,且电视 SoC 通常也难以实时运行画质增强着色器。

改动

  • PlayerKernelConfig.exoPlayerInitEffectGraphInAdvance 的默认值改为 !currentPlatform().isAndroidTv(),TV 上默认关闭,其他平台默认开启(与 UpdateSettings.inAppDownload 的写法一致);

  • 手机、桌面与 iOS 默认值保持不变(仍为开启);TV 用户仍可在设置 → 播放器 → 高级中手动打开该选项。
  • 默认值只在没有已存储值时生效,已经手动设置过的用户不受影响。

    验证

  • 新增 PlayerKernelConfigTest(断言默认值跟随 !currentPlatform().isAndroidTv());

  • ./gradlew :app:shared:app-data:testAndroidHostTest :app:shared:ui-settings:testAndroidHostTest 通过;

  • TV 模拟器(API 36 android-tv 镜像)安装 tvDebug 实测:设置 → 播放器 → 高级中该选项默认关闭。
  • Diff: 85 lines (+63 / -22) across 1 files Reviewer: Him188 Review duration: 67026m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 85 lines diff across 1 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.266
    Real PR Conversation Timeline
    1 comments
    "Review active on #3630"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.3% · Safe to merge
    20.3%