Browse Source

Update player.js

A-Circle Zhang 6 years ago
parent
commit
9c43d49e4b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/js/player.js

+ 3 - 0
src/js/player.js

@@ -563,6 +563,9 @@ class DPlayer {
         if (this.danmaku) {
         if (this.danmaku) {
             this.danmaku.resize();
             this.danmaku.resize();
         }
         }
+        if (this.controller.thumbnails) {
+            this.controller.thumbnails.resize(160, this.video.videoHeight / this.video.videoWidth * 160, this.template.barWrap.offsetWidth);
+        }
         this.events.trigger('resize');
         this.events.trigger('resize');
     }
     }