surmon-china / videojs-player

@videojs player component for @vuejs(3) and React.
https://github.surmon.me/videojs-player
MIT License
5.23k stars 1.12k forks source link

options 参数写在标签上,数据更新会强制刷新video #416

Closed whl0718 closed 2 years ago

whl0718 commented 3 years ago

`

<video-player :options="{ width: '600px', height: '350px', fluid: false, sources: [ { src: 'https://xxxxx.mp4' } ] }"

` options 参数写在标签上,当input数据更新时,video-player也会强制更新

`

<video-player :options="options"

` 如果将options用响应数据来包裹就不会出现上述问题,虽然发现问题,但不明白为什么,求指导学习

lolPlatinumPlayer commented 3 years ago

不止是options写在标签上有这个情况,options用method返回也会有这个情况 只要触发updated生命周期,那视频也会被刷新

GitDjAr commented 3 years ago

不止是options写在标签上有这个情况,options用method返回也会有这个情况 只要触发updated生命周期,那视频也会被刷新

有没有解决办法啊,好困扰,只要是同级触发updtae就会更新

surmon-china commented 2 years ago

设计缺陷,旧版不再维护,请使用新版。

The original vue-video-player package is no longer maintained, please upgrade to @videojs-player/vue.