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.