【问题标题】:Shaka Player picking low quality variant at startupShaka Player 在启动时选择低质量变体
【发布时间】:2020-07-28 11:43:42
【问题描述】:

启用 ABR 后,播放会从所选曲目开始,但会快速跳转到 shaka 播放器中的最低比特率曲目:

预期

应选择轨道(轨道 [id=14])并在带宽可用时继续在同一轨道上。

我尝试了什么

最初我厌倦了在 manifestparsed 事件上将 abr.defaultBandwidthEstimate 设置为 1927692(轨道 [id=14]),但它选择了下一个轨道(轨道 [id=13])。所以我做了以下找到defaultBandwidthEstimate。

defaultBandwidthEstimate = selectedTrack.bandwidth / abr.bandwidthUpgradeTarget

defaultBandwidthEstimate = 1927692 / 0.85

然后,玩家选择了所需的曲目(曲目 [id=14])。

问题

播放从所需轨道(轨道 [id=14])开始,但在几毫秒后立即回退到最低带宽轨道。 我还观察到播放器当前估计的带宽非常低。

切换历史记录:

[{"timestamp":1595138570.405,"id":14,"type":"variant","fromAdaptation":true,"bandwidth":1927692},
{"timestamp":1595138570.405,"id":2,"type":"text","fromAdaptation":true,"bandwidth":null},
{"timestamp":1595138578.943,"id":10,"type":"variant","fromAdaptation":true,"bandwidth":295971}]

所有曲目

[{id: 16, active: false, type: "variant", bandwidth: 5127146, language: "fr", …},
{id: 15, active: false, type: "variant", bandwidth: 2559584, language: "fr", …},
{id: 14, active: false, type: "variant", bandwidth: 1927692, language: "fr", …},
{id: 13, active: false, type: "variant", bandwidth: 1327795, language: "fr", …},
{id: 12, active: false, type: "variant", bandwidth: 695902, language: "fr", …},
{id: 11, active: false, type: "variant", bandwidth: 527931, language: "fr", …},
{id: 10, active: true, type: "variant", bandwidth: 295971, language: "fr", …}]

【问题讨论】:

    标签: video video-streaming shaka


    【解决方案1】:

    ShakaPlayer 为我们提供了配置来限制给定清单/Internet 的最低限度。您可以尝试以下方法来限制 ABR 切换比特率高于给定的 minBitratePixelValue。

     shakaPlayer.configure({
                restrictions: {
                    minPixels: minBitratePixelValue,
                    minHeight: minBitratePixelValue
                }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-15
      • 1970-01-01
      • 2020-02-08
      • 2014-12-24
      • 1970-01-01
      • 1970-01-01
      • 2023-01-31
      • 1970-01-01
      相关资源
      最近更新 更多