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

Fix several issues when playing VR videos #1200

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Fix several issues when playing VR videos #1200

merged 2 commits into from
Jan 24, 2024

Conversation

HollowMan6
Copy link
Collaborator

  • Disable curved display no matter the kind of VR video
    enterVRVideo will not be called again even if we switch the projection mode. So, with curved display enabled, things can still go wrong if users enter with a non-front-facing VR projection and then switch to a front-facing one.
  • Fix display density when exiting VR video mode
    We should also take the texture scale into account to compute the actual width and height for the placement.
    Bug (notice the display density change):
com.igalia.wolvic-20240123-233607.mp4

`enterVRVideo` will not be called again even if we switch
the projection mode. So, with curved display enabled, things
can still go wrong if users enter with a non-front-facing VR
projection and then switch to a front-facing one.

Signed-off-by: Songlin Jiang <[email protected]>
We should also take the texture scale into account
to compute the actual width and height for the placement

Signed-off-by: Songlin Jiang <[email protected]>
Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

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

Both look great, thanks!

@svillar svillar merged commit 5a9cc06 into main Jan 24, 2024
20 checks passed
@svillar svillar deleted the fix-vr-videos branch January 24, 2024 09:28
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.

2 participants