xiaoQQya
2023-11-07 a30ff222ec73ad0898e92d1c569f72863445d413
fix(player): 修复分屏页面视频无法自动播放的问题
1个文件已修改
11 ■■■■ 已修改文件
web_src/src/components/common/jessibuca.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web_src/src/components/common/jessibuca.vue
@@ -1,6 +1,6 @@
<template>
  <div ref="container" @dblclick="fullscreenSwich"
       style="width:100%;height:100%;background-color: #000000;margin:0 auto;">
       style="width:100%;height:100%;background-color: #000000;margin:0 auto;position: relative;">
    <div class="buttons-box" id="buttonsBox">
      <div class="buttons-box-left">
        <i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick"></i>
@@ -60,8 +60,13 @@
    })
  },
  watch: {
    videoUrl(val, _) {
      this.play(val);
    videoUrl: {
      handler(val, _) {
        this.$nextTick(() => {
          this.play(val);
        })
      },
      immediate: true
    }
  },
  methods: {