Skip to content

Commit

Permalink
fix(xgplayer): fix exitFullscreen event problem in Android
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxin92 committed Oct 28, 2018
1 parent 28ed120 commit 3eff095
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/xgplayer/browser/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/xgplayer/dist/index.js

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": "1.1.4-alpha.3",
"version": "1.1.4-alpha.4",
"description": "video player",
"main": "./dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/xgplayer/src/control/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ let fullscreen = function () {
} else {
util.addClass(el, 'xgplayer-fullscreen-active')
}
player.emit('requestFullscreen')
}
let exitFullscreen = function (el) {
path.setAttribute('d', iconPath.default)
Expand All @@ -48,7 +47,6 @@ let fullscreen = function () {
} else {
util.removeClass(el, 'xgplayer-fullscreen-active')
}
player.emit('exitFullscreen')
}
root.appendChild(btn);
['click', 'touchend'].forEach(item => {
Expand All @@ -73,10 +71,12 @@ let fullscreen = function () {
util.addClass(container, 'xgplayer-is-fullscreen')
path.setAttribute('d', iconPath.active)
tips.textContent = tipsExitFull
player.emit('requestFullscreen')
} else {
util.removeClass(container, 'xgplayer-is-fullscreen')
path.setAttribute('d', iconPath.default)
tips.textContent = tipsFull
player.emit('exitFullscreen')
}
}

Expand Down

0 comments on commit 3eff095

Please sign in to comment.