Full screen function through LTI (Moodle) doesn't work properly
Steps to reproduce
Steps to reproduce:
1. Configure LTI component (external tool) in Moodle (3.1.6) with Opencast connection info and specify to lauch in embed mode or embed without blocks mode (see screenshot Moodle_LTI_config.jpg)
2. Launch Opencast video through Moodle's properly configured LTI tool
3. Click on full screen button in the bottom right to put video in full screen mode
Actual Results: Video window becomes blank/white without any possibility to correct the faulty display. Must refresh page to go back to original display. Full screen mode doesn't work (see screenshots OC_x_x.jpg)
Expected Results: Video should switch to full screen mode
Workaround (if any): Configure LTI tool in Moodle to lauch Opencast video/series in new window or existing window. Full screen mode then works as expected, though the player then displays at page's full width regardless of actual video resolution, not centered in page, which is not the prettiest interface.
Haven't tested further but noticed MDL-54540's solution might not be full proof for the Theodul player in certain conditions. Using the Theodul player, coming out of the Full screen mode loses the playback controls if you put it in embed mode using this parameter: '&mode=embed'. We are testing with Paella-Opencast too and so far have not experienced any problem with that player.
// returns undefined (i.e. false) or true. Assumes true if not embedded.
var isFullscreenEnabled = (window.self === window.top) || (document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled);
I think this would be the way to go Stephen. If I embed a youtube video in Moodle, a button hover specifies that Full Screen is not available. I think something similar or a greyed out button would help inform the user that it is not a bug on the player's part. In our case though, the fix worked just fine and we're probably going to integrate it in our future Moodle updates.
Yes, we changed this for Sakai (on the Sakai side).
If the tool consumer (LMS) doesn't allow fullscreen, I'm not sure what we could do from the Opencast side - perhaps a way to detect if fullscreen is allowed for the iframe and if not, grey it out?
Thanks Karen I can confirm that the solution from MDL-54540 (changing a line of code in the LTI view of Moodle) works and allows Opencast videos to be put in Full Screen through its Theodol player. This ticket can be closed.