Ver Fonte

feat(master): add precache for video

yonghaohu há 5 anos atrás
pai
commit
3a66365df4
3 ficheiros alterados com 8 adições e 0 exclusões
  1. 4 0
      web/dist/vap.js
  2. 0 0
      web/dist/vap.min.js
  3. 4 0
      web/src/video.js

+ 4 - 0
web/dist/vap.js

@@ -351,6 +351,10 @@
         height: 375,
         // 容器
         container: null,
+        // 是否预加载视频资源
+        precache: false,
+        // 是否静音播放
+        mute: false,
         config: ''
       }, options);
       this.fps = 20;

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
web/dist/vap.min.js


+ 4 - 0
web/src/video.js

@@ -31,6 +31,10 @@ export default class VapVideo {
         height: 375,
         // 容器
         container: null,
+        // 是否预加载视频资源
+        precache: false,
+        // 是否静音播放
+        mute: false,
         config: ''
       },
       options

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff