Skip to content
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

pass non-fs state info up to the player from tech, split fullscreen and fullwindow styles #2357

Closed
wants to merge 4 commits into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jul 15, 2015

Fixes #2350
Fixes #2346

@pam
Copy link

pam commented Jul 15, 2015

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 51d4e38
Build details: https://travis-ci.org/pam/video.js/builds/71132995

(Please note that this is a fully automated comment.)

@gkatsev gkatsev changed the title pass non-fs state info up to the player from tech pass non-fs state info up to the player from tech, split fullscreen and fullwindow styles Jul 15, 2015
@pam
Copy link

pam commented Jul 15, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 77b3195
Build details: https://travis-ci.org/pam/video.js/builds/71137212

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Jul 15, 2015

@pam retry

@@ -86,7 +86,7 @@ body.vjs-full-window {
/* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html */
overflow-y: auto;
}
.video-js.vjs-fullscreen {
.vjs-full-window .video-js.vjs-fullscreen {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the top/bottom/left/right need to be here or can they stay in the non-full-window vjs-fullscreen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess just moving the position:fixed will be less invasive; though, it seems like the top/bottom/etc are for the full-window and not really for fullscreen, so, it's more correct to keep them here.
However, I tried this out on ios, android, firefox, chrome, safari, IE11, and IE8 and they all work fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess it's position relative otherwise, so that's ok with me.

@pam
Copy link

pam commented Jul 15, 2015

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 77b3195
Build details: https://travis-ci.org/pam/video.js/builds/71140138

(Please note that this is a fully automated comment.)

@@ -975,7 +975,10 @@ class Player extends Component {
*
* @method handleTechFullscreenChange
*/
handleTechFullscreenChange() {
handleTechFullscreenChange(event, data) {
if (data && data === 'not-fullscreen') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the conversation below, just a reminder that this should become data && data.fullscreen === false (assume we want to check for an explicit false here and not just undefined).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, we should explicitly check for false here.

@gkatsev
Copy link
Member Author

gkatsev commented Jul 15, 2015

Updated player and html5.

@pam
Copy link

pam commented Jul 15, 2015

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 01b16b1
Build details: https://travis-ci.org/pam/video.js/builds/71167335

(Please note that this is a fully automated comment.)

@heff
Copy link
Member

heff commented Jul 15, 2015

Nice. Looks good to me.

@@ -321,7 +321,7 @@ class Html5 extends Tech {
if ('webkitDisplayingFullscreen' in video) {
this.one('webkitbeginfullscreen', function() {
this.one('webkitendfullscreen', function() {
this.trigger('fullscreenchange');
this.trigger('fullscreenchange', { isFullscreen: false });
});

this.trigger('fullscreenchange');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set isFullscreen: true here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add it for symmetry, but seems to work fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding it. I don't really understand why it was working otherwise, but feels better to be consistent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because the player was still getting the fullscreenchange and up until this point everything is similar to the normal, expected, spec behavior. Just that exiting the fullscreen doesn't get set correctly.

@pam
Copy link

pam commented Jul 16, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 0b8cb00
Build details: https://travis-ci.org/pam/video.js/builds/71294388

(Please note that this is a fully automated comment.)

@gkatsev
Copy link
Member Author

gkatsev commented Jul 16, 2015

@pam retry

@pam
Copy link

pam commented Jul 16, 2015

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 0b8cb00
Build details: https://travis-ci.org/pam/video.js/builds/71296432

(Please note that this is a fully automated comment.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants