Skip to content

[BUG] cant run element.requestFullscreen() without user interaction #224

Open
@saty9

Description

@saty9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions