New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve VideoPlayer fullscreen for 2d-tasks/issues/1562 #4845
Conversation
* fix ArmatureDisplay property error. * modify the translation
不进 2.1.2,放到 2.2 |
@@ -48,6 +48,7 @@ let VideoPlayerImpl = cc.Class({ | |||
this._video = null; | |||
this._url = ''; | |||
|
|||
this._preFullScreenEnabled = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个类型应该是 boolean,为什么要赋值为 undefined
} | ||
else if (cc.screen.fullScreen()) { | ||
cc.screen.exitFullScreen(video); | ||
if (self._preFullScreenEnabled !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果是为了延迟处理,按理说只需要记录一个 waitingFullscreen 就好了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
但是这样如果记录了 waitingFullscreen,如何知道是 fullscreen 还是 exitfullscreen ?
还是需要记录 enable 的状态的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loadedmetadata 之前怎么可能已经全屏了呢?
Re: cocos/2d-tasks#1562
Changes: