TalAter / annyang

:speech_balloon: Speech recognition for your site
https://www.talater.com/annyang/
MIT License
6.57k stars 1.05k forks source link

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

Open ralphignacio13 opened 2 years ago

ralphignacio13 commented 2 years ago

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