Update player.js

This commit is contained in:
A-Circle Zhang 2018-09-29 12:09:54 +08:00 committed by GitHub
parent 59f4ce6bc8
commit 9c43d49e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -563,6 +563,9 @@ class DPlayer {
if (this.danmaku) {
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');
}