启用 ABR 后,播放会从所选曲目开始,但会快速跳转到 shaka 播放器中的最低比特率曲目:
预期的
当带宽可用时,应选择轨道(轨道 [id=14])并在同一轨道上继续。
我试过的
最初我厌倦了在 manifestparsed 事件上将 abr.defaultBandwidthEstimate 设置为 1927692(轨道 [id=14]),但它选择了下一个轨道(轨道 [id=13])。所以我做了以下找到defaultBandwidthEstimate。
defaultBandwidthEstimate = selectedTrack.bandwidth / abr.bandwidthUpgradeTarget
默认带宽估计 = 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", …}]