Trigger fullscreen

Forums: 

Hello, I'm using h5p drupal module and I was trying to trigger fullscreen view once the user opens the page with the CoursePresentation content. I tried different ways (using H5P.fullScreen and .trigger('click')), but non of those did work. Instead of opening in fullscreen it shrinks the presentation. No js errors in console exists. Screenshot of behavior attached.

Attachments: 

Also, is there a way to make full browser instead of full screen by default, when user opens the page with presentation ?

tim's picture

Have you tried setting an id on the button and doing:
document.getElementById('myId').click()?

Yes, I tried that. Using .fullScreen() function returns message in console that fullscreen mode requires user interaction. In fact .click() triggers, but instead of fullscreen I get shrinked version like on a screenshot provided.

tim's picture

Could you share the error message from the console?