Parcourir la source

feat(master): add precache for video

yonghaohu il y a 5 ans
Parent
commit
3a66365df4
3 fichiers modifiés avec 8 ajouts et 0 suppressions
  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;

Fichier diff supprimé car celui-ci est trop grand
+ 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

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff