Parcourir la source

fix: video未自动播放

chenlei il y a 1 an
Parent
commit
e514998171
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/views/CoverHome/index.vue

+ 3 - 0
src/views/CoverHome/index.vue

@@ -9,6 +9,9 @@
     class="video"
     muted
     autoplay
+    playsinline
+    webkit-playsinline="true"
+    x5-video-player-type="h5"
     src="@/assets/videos/video.mp4"
     @play="videoPlaying = true"
     @ended="handleEnded"