Skip to content

fix(ui): Fix exception on screen rotation if fullscreen is not supported#4669

Merged
joeyparrish merged 2 commits intoshaka-project:mainfrom
ocipap:check-fullscreen
Nov 9, 2022
Merged

fix(ui): Fix exception on screen rotation if fullscreen is not supported#4669
joeyparrish merged 2 commits intoshaka-project:mainfrom
ocipap:check-fullscreen

Conversation

@ocipap
Copy link
Contributor

@ocipap ocipap commented Nov 9, 2022

Problem description

Console error in environment where fullscreen is not possible when enableFullscreenOnRotation option is turned on

TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)

How to fix

check isFullScreenSupported on onScreenRotation

@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

Incremental code coverage: 0.00%

@avelad avelad added type: bug Something isn't working correctly component: UI The issue involves the Shaka Player UI labels Nov 9, 2022
@avelad avelad added this to the v4.3 milestone Nov 9, 2022
@joeyparrish joeyparrish changed the title fix: Check isFullScreenSupported on onScreenRotation fix: Fix exception on screen rotation if fullscreen is not supported Nov 9, 2022
@joeyparrish joeyparrish changed the title fix: Fix exception on screen rotation if fullscreen is not supported fix(ui): Fix exception on screen rotation if fullscreen is not supported Nov 9, 2022
@joeyparrish joeyparrish merged commit fd93f6a into shaka-project:main Nov 9, 2022
joeyparrish added a commit that referenced this pull request Nov 9, 2022
…ted (#4669)

If fullscreen is not supported when enableFullscreenOnRotation option is enabled, this exception occurred:

TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)

This fixes the exception by checking isFullScreenSupported().

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Nov 9, 2022
…ted (#4669)

If fullscreen is not supported when enableFullscreenOnRotation option is enabled, this exception occurred:

TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)

This fixes the exception by checking isFullScreenSupported().

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Nov 9, 2022
…ted (#4669)

If fullscreen is not supported when enableFullscreenOnRotation option is enabled, this exception occurred:

TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)

This fixes the exception by checking isFullScreenSupported().

Backported to v3.2.x

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Nov 9, 2022
…ted (#4669)

If fullscreen is not supported when enableFullscreenOnRotation option is enabled, this exception occurred:

TypeError: i.j.requestFullscreen is not a function. (In 'i.j.requestFullscreen({navigationUI:"hide"})', 'i.j.requestFullscreen' is undefined)

This fixes the exception by checking isFullScreenSupported().

Backported to v3.3.x

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Dec 6, 2022
This refactors and cleans up fullscreen functionality in the UI so that
all triggers are consistent and work correctly on all platforms.

See also #4669

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Dec 8, 2022
This refactors and cleans up fullscreen functionality in the UI so that
all triggers are consistent and work correctly on all platforms.

See also #4669

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
joeyparrish added a commit that referenced this pull request Dec 8, 2022
This refactors and cleans up fullscreen functionality in the UI so that
all triggers are consistent and work correctly on all platforms.

See also #4669

Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component: UI The issue involves the Shaka Player UI status: archived Archived and locked; will not be updated type: bug Something isn't working correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants