Trigger fullscreen

Submitted by soric on Tue, 12/05/2017 - 18:00
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:
Image icon CP.png

soric

Tue, 12/05/2017 - 18:20

Permalink

Also, is there a way to make

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

tim

Wed, 12/06/2017 - 15:31

Permalink

Have you tried setting an id

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

soric

Thu, 12/07/2017 - 11:55

Permalink

I surely did

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

Tue, 12/12/2017 - 13:05

Permalink

Could you share the error

Could you share the error message from the console?