fix danmaku callback error in mobile and live mode
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dplayer",
|
||||
"version": "1.17.0",
|
||||
"version": "1.17.1",
|
||||
"description": "Wow, such a lovely HTML5 danmaku video player",
|
||||
"main": "dist/DPlayer.min.js",
|
||||
"style": "dist/DPlayer.min.css",
|
||||
|
||||
+10
-8
@@ -88,15 +88,17 @@ class DPlayer {
|
||||
container: this.container.getElementsByClassName('dplayer-danmaku')[0],
|
||||
opacity: this.user.get('opacity'),
|
||||
callback: () => {
|
||||
this.container.getElementsByClassName('dplayer-danloading')[0].style.display = 'none';
|
||||
setTimeout(() => {
|
||||
this.container.getElementsByClassName('dplayer-danloading')[0].style.display = 'none';
|
||||
|
||||
// autoplay
|
||||
if (this.options.autoplay && !isMobile) {
|
||||
this.play();
|
||||
}
|
||||
else if (isMobile) {
|
||||
this.pause();
|
||||
}
|
||||
// autoplay
|
||||
if (this.options.autoplay && !isMobile) {
|
||||
this.play();
|
||||
}
|
||||
else if (isMobile) {
|
||||
this.pause();
|
||||
}
|
||||
}, 0);
|
||||
},
|
||||
error: (msg) => {
|
||||
this.notice(msg);
|
||||
|
||||
@@ -5063,9 +5063,9 @@ webpack-sources@^1.0.1:
|
||||
source-list-map "^2.0.0"
|
||||
source-map "~0.6.1"
|
||||
|
||||
webpack@^3.1.0:
|
||||
version "3.8.1"
|
||||
resolved "http://registry.npm.taobao.org/webpack/download/webpack-3.8.1.tgz#b16968a81100abe61608b0153c9159ef8bb2bd83"
|
||||
webpack@^3.8.1:
|
||||
version "3.9.1"
|
||||
resolved "https://registry.npmjs.org/webpack/-/webpack-3.9.1.tgz#9a60aa544ed5d4d454c069e3f521aa007e02643c"
|
||||
dependencies:
|
||||
acorn "^5.0.0"
|
||||
acorn-dynamic-import "^2.0.0"
|
||||
|
||||
Reference in New Issue
Block a user