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

nuxt.js使用时切换页面样式类名,player也会自动更新。强制暂停,非常无语 #417

Open yunwow opened 3 years ago

yunwow commented 3 years ago

nuxt.js使用时切换页面样式类名,player也会自动更新。强制暂停,非常无语

Jason0715 commented 3 years ago

是的,希望能解决。我也遇到这个问题了

MaMaFish commented 2 years ago

各位怎么解决的呢,我也遇到这个问题了

chiukovo commented 1 year ago

在包一層 components 就能解決了 pages <Player :playerOptions="playerOptions" v-if="playerOptions.sources != ''"></Player>

components `<div class="video-player vjs-custom-skin" :playsinline="true" v-video-player:myVideoPlayer="playerOptions" v-if="playerOptions.sources != ''"

`