obsproject / obsproject/obs-browser
[BUG] cant run element.requestFullscreen() without user interaction
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 904
- Forks
- 267
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
Platform
Operating system and version:
Ubuntu 18.04.4 LTS
(also reproduced on windows 10)
OBS Studio version:
installed using ubuntu store snap version 25.0.7 rev 1063
Expected Behavior
A page that runs videoelement.requestFullscreen() should have that element go fullscreen
Current Behavior
The action is blocked with the message:
'requestFullscreen' on 'Element': API can only be initiated by a user gesture.
Steps to Reproduce
https://jsfiddle.net/saty9/xpntf1qc/3/
Should have enough to reproduce a page with the same issue. I believe it cant be hosted from a local file for testing as that may bypass the restriction (I haven't checked this)
Additional information
The video is displaying data from a webrtc stream in my usecase
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JSFiddle and reproduce the fullscreen request in the OBS browser plugin on Ubuntu and Windows. Trace the browser/plugin handling of the user-gesture restriction and compare the observed behavior with the expected fullscreen result. Done means the issue is either fixed with regression coverage or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100