Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Re-enable iOS and iPadOS fullscreen #266

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

Belchy06
Copy link
Collaborator

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

This issue addresses #258, which states full screen on iOS has been broken since moving to the typescript frontend.

This regression is caused by iOS only allowing video elements to be full screened, whereas iPad and all other devices allow arbitrary html elements to become full screen. source

Solution

This PR addresses the problem by first checking the browsers user agents and if the device is an iPod or iPhone, we will only full screen the video element, otherwise we will full screen the parent div which contains all of the interactable UI.

NOTE: As previously described, iPhones and iPods can't full screen arbitrary elements and as such requesting full screen will result in the video being played through the native player and input being prevented.

Test Plan and Compatibility

Tested on an iPhone and iPad to confirm correct operation between devices.

@Belchy06 Belchy06 added bug Something isn't working regression labels Jun 12, 2023
@Belchy06 Belchy06 added this to the 5.3 milestone Jun 12, 2023
@Belchy06 Belchy06 self-assigned this Jun 12, 2023
@Belchy06 Belchy06 requested a review from lukehb June 12, 2023 06:37
Copy link
Contributor

@lukehb lukehb left a comment

Choose a reason for hiding this comment

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

Beautiful.

@lukehb lukehb merged commit d95c001 into EpicGames:master Jun 12, 2023
This was referenced Jun 12, 2023
@Belchy06
Copy link
Collaborator Author

Hey @copostic,

As mentioned in the PR, iOS will still use the native player regardless of whether you're using the typescript frontend or the js frontend in 5.1 and earlier.

That being said, I'll look at bringing the user agent check which will allow full screen on iPads into the older branches tomorrow.

@Belchy06 Belchy06 deleted the ios-fullscreen branch July 19, 2023 01:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working regression
Development

Successfully merging this pull request may close these issues.

None yet

2 participants