Bläddra i källkod

feat(master): add precache for video

yonghaohu 5 år sedan
förälder
incheckning
3a66365df4
3 ändrade filer med 8 tillägg och 0 borttagningar
  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;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 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

Vissa filer visades inte eftersom för många filer har ändrats