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

Youtube videos do not play in full screen on iPad #3846

Open
dovanvu1792 opened this issue Sep 3, 2023 · 2 comments
Open

Youtube videos do not play in full screen on iPad #3846

dovanvu1792 opened this issue Sep 3, 2023 · 2 comments
Labels

Comments

@dovanvu1792
Copy link

dovanvu1792 commented Sep 3, 2023

Steps to reproduce

  1. Launch Focus
  2. Past and GO on address bar: https://www.youtube.com/watch?v=CwA1VWP0Ldw
  3. Tap on full screen button

Expected behavior

  • Videos should play in full screen.

Actual behavior

  • The full screen button is greyed out.

Device & build information

  • Device: IPAD 12.9 gen 6

┆Issue is synchronized with this Jira Task

@sryze
Copy link
Contributor

sryze commented Oct 22, 2023

For me it happens only after I reload the tab. If I simply open the same video twice, the full screen button remains active.

Upon pressing on the grayed-out full screen button, a tooltiop appears saying: Full screen mode is not supported by this browser

Turning Tracking Protection off has no effect.

@sryze
Copy link
Contributor

sryze commented Oct 22, 2023

Adding

addScript(forResource: "FullScreen", injectionTime: .atDocumentStart, forMainFrameOnly: true)

to

addScript(forResource: "FullScreen", injectionTime: .atDocumentEnd, forMainFrameOnly: true)
seems to fix it

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

No branches or pull requests

2 participants