Skip to content

Vue2中使用 this.$refs.videoPlayer.player设置倍速失败 #454

@rene0103

Description

@rene0103

Describe the bug

前端页面四个button分别 0.25、0.5、1.0、2.0的倍速按钮,
this.$refs.videoPlayer.player.playbackRate(速度值);
video在一个弹窗中,如果打开弹窗视频播放后直接设置2.0的倍速,就无效,
先设置0.25、0.5倍速都可以实现,然后再去设置2的倍速,此时有效果。大约5秒后,失效。

Reproduction

前端页面四个button分别 0.25、0.5、1.0、2.0的倍速按钮,
this.$refs.videoPlayer.player.playbackRate(速度值);
video在一个弹窗中,如果打开弹窗视频播放后直接设置2.0的倍速,就无效,
先设置0.25、0.5倍速都可以实现,然后再去设置2的倍速,此时有效果。大约5秒后,失效。

System Info

"vue-video-player": "^5.0.2",

Used Package Manager

npm

Validations

  • Read the the documentation in detail.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions