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

feat(FEC-10486): Lock orientation according to screenLockOrientionMode config when switching to full screen #499

Merged
merged 17 commits into from
Nov 25, 2020

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented Nov 1, 2020

Description of the Changes

add screenLockOrientionMode config to be able to lock the screen mode in fullscreen.
new enum with possible values for this config:
"none" "any" "natural" "landscape" "portrait" "portrait-primary" "portrait-secondary" "landscape-primary" "landscape-secondary"

Solves FEC-10486

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

…screen

Lock orientation to landscape when switching to full screen and new config disableFullScreenOrientation to disable it.
@Yuvalke Yuvalke requested a review from a team November 1, 2020 16:20
@Yuvalke Yuvalke self-assigned this Nov 1, 2020
@Yuvalke Yuvalke changed the title fix(FEC-10468): Lock orientation to landscape when switching to full screen feat(FEC-10468): Lock orientation to landscape when switching to full screen Nov 1, 2020
Copy link
Contributor

@OrenMe OrenMe left a comment

Choose a reason for hiding this comment

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

I think we should change the config to accepts the orientation as a config option that accepts any of the acceptable strings as described here: https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock

"any"
"natural"
"landscape"
"portrait"
"portrait-primary"
"portrait-secondary"
"landscape-primary"
"landscape-secondary"

if it is set then use the value on the request for lock()

src/fullscreen/fullscreen-controller.js Outdated Show resolved Hide resolved
src/fullscreen/fullscreen-controller.js Outdated Show resolved Hide resolved
src/player-config.js Outdated Show resolved Hide resolved
RoyBregman
RoyBregman previously approved these changes Nov 24, 2020
src/fullscreen/fullscreen-controller.js Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
@OrenMe OrenMe changed the title feat(FEC-10468): Lock orientation to landscape when switching to full screen feat(FEC-10486): Lock orientation to landscape when switching to full screen Nov 25, 2020
@Yuvalke Yuvalke changed the title feat(FEC-10486): Lock orientation to landscape when switching to full screen feat(FEC-10486): Lock orientation according to screenLockOrientionMode config when switching to full screen Nov 25, 2020
@Yuvalke Yuvalke merged commit 21d7227 into master Nov 25, 2020
@Yuvalke Yuvalke deleted the FEC-10468 branch November 25, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants