Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. #438

Open
ralphignacio13 opened this issue Jun 20, 2021 · 0 comments

Comments

@ralphignacio13
Copy link

When I am using requestFullscreen() function to make a video player fullscreen using voice commands, I am getting this "(index):379 Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture."

Expected Behavior

Video player should be fullscreened

Current Behavior

Returning an error: (index):379 Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

Possible Solution

Maybe changing the height and width but I tried that it only changes the dimensions of the video the video controls are not included in the change size

Steps to Reproduce (for bugs)

  1. Use 'fullscreen' : function (){
    #video.requestFullscreen();

Context

I am very thankful for the opportunity to be able to add voice recognition easily on web application, and I am currently using this for my college thesis.

Your Environment

  • Version used: latest
  • Browser name and version: Chome
  • Operating system and version (desktop or mobile): Windows
  • Link to your project: I have it hosted locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant