## Activities: Videofile

mod_videofile
Maintained by Jonas Nockert
Easy cross-browser compatibility videos using Video.js.
316
514
8
Moodle 2.4, 2.5, 2.6, 2.7

Videofile is a Moodle 2.4+ resource plugin intended to provide teachers with easy handling of cross-browser compatible videos using Video.js. In most cases it should be enough to add .mp4 video files which will then play in an html5 player in modern browsers and in a flash player in older browsers.

Videofile and Video.js also supports WebVTT captions as well as a poster image that displays before the video is started. It works well with responsive themes.

### Contributors

• Wed, Apr 22, 2015, 5:30 PM
Dear Jonas,

This player works very well. Thanks a lot for your nice work!

May I know if it is possible to include the function of switching video quality (e.g. HD & CC)? It consumes lots of data if it is viewed by phone. Thanks!

Foot
• Fri, Apr 24, 2015, 3:41 AM
Portuguese/BR (pt_br) language strings file translated to objective words and free of errors: goo.gl/n76De8 (my drive folder)
• Tue, Oct 27, 2015, 10:23 PM
Looks good I have a few questions... are we able to prevent scrubbing forward, bookmarking (currentFrame) and getting a completion event
• Thu, Nov 26, 2015, 8:51 AM
Hi Jonas, we've gotten your block running on 2.5 and it's excellent! We're in the process of upgrading our Moodle server to 2.9, or even 3.0, but this block isn't up there yet. Is there an update in the works?
• Tue, Dec 1, 2015, 5:23 AM
Hi Rhys,
We recently updated from 2.5 to 2.9 and the Videofile activity is still working fine. Not sure about 3.0, though. If you have a test version of your site, you might try it out there first.
• Wed, Dec 2, 2015, 12:13 PM
We have it running successfully in 3.0 after upgrade from 2.7. Just had to edit the videofile\version.php file to change all instances of $module to$plugin.
• Mon, Dec 14, 2015, 10:03 PM
I would use it in Moodle 3.0 but it gives me error , someone made ​​modifications to use the latest version of moodle ? thanks
• Sat, Jan 9, 2016, 1:08 AM
Debugging output enabled
[Error] Unsupported syntax detected in version.php file [$module] Installation aborted due to validation failure help • Tue, Jan 26, 2016, 4:05 PM Ok, I used this a lot in my Moodle. worked really well. I have now upgraded to Moodle 3.02 and I had to remove it before I could do the upgrade as there was an error in the version.php Is there a Beta that I can use for Moodle 3 or is there a workaround? • Tue, Jan 26, 2016, 4:11 PM Its OK, should have read Neil Pollock's post, Maria you may want to check it as well. I opened up the version.php file in Notepad++ and just did a replace as Neil suggested. It made 8 replacements and it then installed just fine. • Thu, Feb 25, 2016, 8:21 AM Is it possible to add HLS streams with this plugin? Video.JS does have the ability to do them via the videojs.hls.min.js file. From my experience, there is a gotcha in that the HLS javascript file needs to be within the same domain as the page embedding the videoplayer. • Tue, Mar 15, 2016, 3:30 PM Is version 1.06 compatible with PHP7? • Sat, Apr 2, 2016, 4:33 PM Neil Pollock's solution on error with version.php posted Wed, Dec 2, 2015, 12:13 PM worked for me... Thanks mate.. for moodle 3.0+ "just replace$module to \$plugin in version.php in mod/videofile/version.php"