Triggering click event returns error


I'm using H5P in Drupal.  I'm trying to trigger a click event on orientation change to landscape on mobile devices but I'm receiving an error:

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

This works when I bind to a click event but not on the orientation event. The interesting thing is that the video starts to play but there is an issue in the H5P code for landscape I guess or how I'm trying to trigger it. I have attached a screenshot of the console error.

Any help would be much appreciated.




Content types: 
icc's picture

On some devices and browsers, the event actually has to be triggered from a real user input, such as a mouse click or touch screen. I'm not sure if the orientation change qualifies as an intentional user event in all browsers.