Browse Source

feat(master): add precache for video

yonghaohu 5 years ago
parent
commit
3a66365df4
3 changed files with 8 additions and 0 deletions
  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,
         height: 375,
         // 容器
         // 容器
         container: null,
         container: null,
+        // 是否预加载视频资源
+        precache: false,
+        // 是否静音播放
+        mute: false,
         config: ''
         config: ''
       }, options);
       }, options);
       this.fps = 20;
       this.fps = 20;

File diff suppressed because it is too large
+ 0 - 0
web/dist/vap.min.js


+ 4 - 0
web/src/video.js

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

Some files were not shown because too many files changed in this diff