Skip to content

Commit

Permalink
fix(xgplayer): delete onTimeupdate which removes xgplayer-isloading c…
Browse files Browse the repository at this point in the history
…lass
  • Loading branch information
zhangxin92 committed Sep 21, 2020
1 parent f111550 commit 3d2af6b
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/xgplayer/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/browser/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/browser/simple_player.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/browser/simple_player.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/dist/simple_player.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/dist/simple_player.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xgplayer",
"version": "2.11.5",
"version": "2.11.6",
"description": "video player",
"main": "./dist/index.js",
"typings": "./types/index.d.ts",
Expand Down
16 changes: 8 additions & 8 deletions packages/xgplayer/src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,14 @@ class Player extends Proxy {
// util.addClass(this.root, 'seeking');
}

onTimeupdate () {
// for ie,playing fired before waiting
if (this.waitTimer) {
clearTimeout(this.waitTimer)
}
util.removeClass(this.root, 'xgplayer-isloading')

}
// onTimeupdate () {
// // for ie,playing fired before waiting
// if (this.waitTimer) {
// clearTimeout(this.waitTimer)
// }
// util.removeClass(this.root, 'xgplayer-isloading')

// }

onSeeked () {
// for ie,playing fired before waiting
Expand Down
2 changes: 1 addition & 1 deletion packages/xgplayer/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "2.11.5"
"version": "2.11.6"
}

0 comments on commit 3d2af6b

Please sign in to comment.