Bladeren bron

feat: 解决视频不能全屏问题

rindy 9 maanden geleden
bovenliggende
commit
868a85db72

+ 6 - 2
packages/qjkankan-view/src/components/Fdkk/index.vue

@@ -2,7 +2,9 @@
   <div class="fdkkcon">
     <template v-if="fdkkCurrentVersion == 'V3'">
       <iframe
-        allowfullscreen="true"
+        webkitallowfullscreen="" 
+        mozallowfullscreen="" 
+        allowfullscreen=""
         allow="autoplay"
         :key="currentScene.sceneCode"
         v-if="!isMobile"
@@ -30,7 +32,9 @@
     </template>
 
     <iframe
-      allowfullscreen="true"
+      webkitallowfullscreen="" 
+	    mozallowfullscreen="" 
+	    allowfullscreen=""
       allow="autoplay"
       :key="currentScene.sceneCode"
       class="V4"

+ 3 - 1
packages/qjkankan-view/src/components/Fdkk/v3fdkkmobile/iframe.vue

@@ -8,7 +8,9 @@
     />
     <iframe
       allow="autoplay"
-      allowfullscreen="true"
+      webkitallowfullscreen="" 
+	    mozallowfullscreen="" 
+	    allowfullscreen=""
       ref="iframe"
       id="showifr"
       :src="url"