HTML5 video tag and full screen problem with Chrome

HTML5 video tag and full screen problem with Chrome

by Emmanuel Herrera -
Number of replies: 2

I installed Moodle 2.4.5 and loaded a SCORM package which has HTML5 content, and this content use HTML5 video tag, the problem is when I'm using Chrome (it works ok on Firefox) and I try to switch any video to the full screen mode, I can't see the video anymore. If I see the same content outside of Moodle I don't have any problem at all, I'm using Chrome 28.0.1500.95, Ubuntu 12.04.

Any ideas? thx!

Average of ratings: -
In reply to Emmanuel Herrera

Re: HTML5 video tag and full screen problem with Chrome

by Vasyl Lupynis -
Before sorry for my english smile. I fixed the problem.


1. Update javascript code in file mod/scorm/module.js. Add the next three lines.

            ...

            var content = Y.one('#scorm_content');

            var obj = document.createElement('iframe');

            obj.setAttribute('id', 'scorm_object');

            obj.setAttribute('type', 'text/html');

            obj.setAttribute('webkitallowfullscreen','');

            obj.setAttribute('mozallowfullscreen','');

            obj.setAttribute('allowfullscreen','');

            if (!window_name && node.title != null) {

            ...

2. Login in moodle as administrator. Go to the Site Administrator->Development-> Purge all caches

Good luck!

In reply to Vasyl Lupynis

Re: HTML5 video tag and full screen problem with Chrome

by Carlos Rodriguez -
I'm trying to do the same on an IMS package and it doesnt work. I has the same obj.SetAttribute but it doesn't work.


Can you help me?