Browse Source

Merge branch 'iteration_0307' into jenkins

liushengqiang 1 year ago
parent
commit
56a100feb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/coursewarePlay/component/video-play.tsx

+ 1 - 1
src/views/coursewarePlay/component/video-play.tsx

@@ -139,7 +139,7 @@ export default defineComponent({
         videoItem.value.once('loadedmetadata', (e: Event) => {
           changePlayBtn('play')
           videoItem.value.currentTime = 0
-          if (item.value.autoPlay && videoItem.value) {
+          if (item.value.autoPlay && videoItem.value && props.isActive) {
             videoItem.value.play()
           }
           emit('loadedmetadata', videoItem.value)