Activities: Videofile

Maintained by Picture of Jonas NockertJonas Nockert
Easy cross-browser compatibility videos using Video.js.
259 sites
25 fans

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.


Screenshot #0
Screenshot #1


Picture of Jonas Nockert
Jonas Nockert (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Rhys Gannell
    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?
  • Picture of Matt Long
    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.
  • Picture of Neil Pollock
    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.
  • Picture of Maria Emilia De Bernardo Saralegui
    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
  • Picture of Nadirshah Ferozepurwalla
    Sat, Jan 9, 2016, 1:08 AM
    Debugging output enabled
    ZIP /home/ishiftglobal/.cpanel/alfalahmd/temp/tool_installaddon/901a3633-11fd-4efc-9711-fd84e00708b0/
    Validating mod_videofile ... Error
    [OK] Name of the plugin to be installed [videofile] Help with Name of the plugin to be installed
    [Error] Unsupported syntax detected in version.php file [$module]
    Installation aborted due to validation failure

  • Picture of Paul Clarke
    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?
  • Picture of Paul Clarke
    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.
  • Picture of Andrew Bauer
    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.
  • Picture of Josiah Carberry
    Tue, Mar 15, 2016, 3:30 PM
    Is version 1.06 compatible with PHP7?
  • Picture of Sudan Maharjan
    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"
  • Picture of Josiah Carberry
    Tue, Apr 5, 2016, 10:25 PM
    Am using videofile 2015061101 on moodle 3.0.3 (Build: 20160314).
    A course consists of sections, each of which contains a videofile, a quiz and an assigment.
    When logged in as an administrator, if I select to change role to an Authenticated User, who should not be able to see anything at all. I see all the videofiles but none of the quizzes and assignments. I have no special access restrictions set for ANY of the activities. So why am I seeing those videofiles where I should not? Any ideas?
  • Picture of Josiah Carberry
    Sun, May 29, 2016, 7:25 PM
    When you add multiple video files to a single resource, how does videofile decide which one to use? And, I presume that the links following, "Video not playing? Try..." are in the order of the files added, but showing only the file extensions does NOT help to disambiguate them.
  • cb userpic w harvey
    Wed, Oct 5, 2016, 4:48 AM
    FYI, 3.1.2 install gave this error: Install plugin from ZIP file

    Debugging output enabled
    ZIP /var/www/moodledata/temp/tool_installaddon/8ca3a555-d5d9-45d8-b845-2d09d5391135/
    Validating mod_videofile ... Error
    [OK] Name of the plugin to be installed [videofile] Help with Name of the plugin to be installed
    [Error] Unsupported syntax detected in version.php file [$module]
    Installation aborted due to validation failure
  • Picture of cecilia dal bon
    Mon, Nov 14, 2016, 7:54 PM
    i'm using videofile in a Moodle 3.0 and the big problem is that the logs to the resource are not tracked...(as reported here -->
    Any idea if this will be fixed or not?
    best regards
  • Picture of Becka M
    Thu, Jan 12, 2017, 1:11 PM
    Hello! I downloaded this, and was wondering how to use a URL link. I have many, many videos to use, but I don't want to bog down my moodledata folder with them.
1 2 3 4 5
Please login to post comments