Your Moodle version

Activities: Videofile

Maintained by Picture of Jonas Nockert Jonas Nockert
Easy cross-browser compatibility videos using Video.js.

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 Jonas Nockert
    Fri, Jun 20, 2014, 2:06 AM
    That sounds like a great idea, @Mathew. No guarantees but I'll try to get that out next week.
  • Picture of Mathew Gancarz
    Fri, Jun 20, 2014, 6:13 AM
    Great to hear Jonas! Meanwhile I've put in a workaround where I've tweaked the styles.css to be:
    .videofile .video-js {
    margin: 0 auto;
    max-width: 640px;
    max-height: 480px;

    One problem with my hack I've just discovered is that when I full-screen the HTML5 player, it still listens to the max-width and max-height, making it a floating 640x480 window at the top of the screen, rather than a full-screen window.

    I guess this is something to test for if you decide to implement my suggestion.
  • Picture of Jonas Nockert
    Wed, Jun 25, 2014, 10:39 PM
    Mathew Gancarz: I've now uploaded a new version. Hopefully the max size works like you wanted. Please let me know if you have any problems with it.

    Thanks for the suggestion and also many thanks for the heads up with full screen mode : )
  • Picture of Mathew Gancarz
    Fri, Jun 27, 2014, 12:13 AM
    Thank you Jonah, testing it and so far it works as expected. Thank you for implementing this so quickly, I'm glad you liked the idea!
  • Picture of Zac Cosner
    Fri, Jul 11, 2014, 2:54 AM
    Jonas, Did you ever implement disabling "download file " from right click?
  • Picture of Sergey Ab
    Mon, Aug 25, 2014, 10:19 PM
    Nice plugin, thanks!

    + for enhancing by adding options/setting for autoplay and for hiding download link.

    Is it possible to update video.js to latest release from developers site without altering plugin?

    Thank you in advance.
  • Picture of Shutiri Yarbe
    Sun, Sep 21, 2014, 5:41 PM
    Hello Jonas,

    I've been using videofile resource for months. I love it and truly need it for our website. Thank you !

    I'd like to add videofiles to the book resource, so I can have videos on the pages/chapters of each book.

    How can I do that?

    Already tried:
    - View page source, copy the videofile code and paste it on the WYSIWYG editor of the chapter.
    1. skin won't work
    2. 'Try mp4' feature pulls a HEAVY quicktime player, instead of opening the file in full page mode.

    Thank you.

  • Picture of Ahmed Ibrahim
    Sun, Jan 11, 2015, 10:31 PM
    Does this plugin work with moodle 2.8?
  • Picture of Jonas Nockert
    Sun, Jan 11, 2015, 11:43 PM
    Ahmed, I haven't actually tried it with 2.8. If you decide to test it, please let me know if it works or not.

    All best, Jonas
  • Just wondering . . .
    Tue, Feb 17, 2015, 12:05 PM
    Ahmed: any luick with 2.8??

  • On the jetty
    Mon, Mar 2, 2015, 11:55 PM
    Hi, I have installed to moodle 2.8.1 and it seems to work ok
  • Picture of Foot Tsang
    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!

  • Picture of Matteus Barbosa
    Fri, Apr 24, 2015, 3:41 AM
    Portuguese/BR (pt_br) language strings file translated to objective words and free of errors: (my drive folder)
  • Picture of mike mike
    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
  • 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?
1 2 3 4
Please login to post comments