Expected behaviour
Actual behaviour
Steps to reproduce
启用移动端长按快进
报错如图
经排查是这里的错误,当触发快进时播放速度为Artplayer.FAST_FORWARD_VALUE = 3,该速度不在Artplayer.PLAYBACK_RATE = [0.5, 0.75, 1, 1.25, 1.5, 2]里,就是空的
|
function update() { |
|
const target = art.setting.find(`playback-rate-${art.playbackRate}`) |
|
art.setting.check(target) |
|
} |
Environment
- Browser: Edge
- Version: 140.0.3485.54
- Operating System: Windows
- Version: 11
Console errors (if any)
Uncaught TypeError: Cannot read properties of null (reading '$parent')
Link to where the bug is happening
Expected behaviour
Actual behaviour
Steps to reproduce
启用移动端长按快进
报错如图
经排查是这里的错误,当触发快进时播放速度为
Artplayer.FAST_FORWARD_VALUE = 3,该速度不在Artplayer.PLAYBACK_RATE = [0.5, 0.75, 1, 1.25, 1.5, 2]里,就是空的ArtPlayer/packages/artplayer/src/setting/playbackRate.js
Lines 12 to 15 in 714c81e
Environment
Console errors (if any)
Uncaught TypeError: Cannot read properties of null (reading '$parent')
Link to where the bug is happening