Fullscreen or .mejs__unfullscreen button

Ok, so I got another crazy question for you guys!!!
You guys are amazing!!!! :)
Ok here goes!
So, a student can view the course and can view videos full screen! Works great! However, I wanted to have content pop up over the video and the video pause, some fun interaction!! This all works great, and the logic is there.. Unless the user or student is viewing the video fullscreen! At that point the video pauses and you hear sounds, but you can't see the content.
This would simulate the checkbox (Always on top) if it were checked. But it's not... I've concluded that if the video is fullscreen nothing can populate on top!
So... would there be a way to simulate or code (javascript maybe) that would act as if this button were clicked .. .mejs__unfullscreen button
I'm thinking something like this
function clickButton() {
document.querySelector('.mejs__unfullscreen button').click();
}
If so I think that would take the user out of fullscreen and at that point i could use the Sync Events to implement this :)
I hope that makes sense!! Thanks in advance!!!
Hope you all had a great turkey day!!! :)
Brandon
Comments
-
Do you publish with Seamless Play?
Try:
triv$(getDisplayDocument()).find('.mejs__unfullscreen button').click();
This should work both ways. There are other way to finish the fullscreen mode, e.g.
getDisplayDocument().exitFullscreen();
This should work without relying on the button.
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products