YouTube submission

Assignment submissions ::: assignsubmission_youtube
Maintained by Justin Hunt
The YouTube assignment submission allows students to record or upload videos directly into YouTube from within an assignment. The video file is stored on YouTube, though it is accessible from Moodle. This allows students to submit long videos, videos in different formats and to use almost any PC or device.
Latest release:
26 sites
20 fans
Current versions available: 1

The YouTube assignment submission plugin is for the Moodle assignment (2.3  and above). It allows teachers to set an assignment, for which a submission can be a video. The video is uploaded from the student's pc/device directly to YouTube. The video file is stored on YouTube, though it is accessible from Moodle.

The YouTube assignment is contained in the "youtube" folder. That folder should be placed in the following directory of a Moodle installation:
[PATH TO MOODLE]/mod/assign/submission
Other folders in that directory will include, "file" and "onlinetext"

Once the folder is in place, Moodle will be able to install the plugin. First login as the site administrator. Moodle should detect the YouTube assignment and present a page with plugin information and the unavoidable option to proceed to install a new plugin. If Moodle does not automatically direct you to this page, you can go there from the Moodle menu:
Site Administration -> Notifications

Follow the prompts to install the plugin. On the last step Moodle will show the settings page for the YouTube assignment. The settings can be accessed by the administrator at any time from the Moodle menu:
Site Administration -> Plugins -> Assignment Plugins->Submission Plugins -> YouTube Submission

Configuring YouTube Authentication Settings

If you plan to use the video upload form to submit videos to YouTube, then you will need to configure authentication. (For creating videos by webcam, there is no need to set up authentication systems in Moodle, but the student will be required to login to their Google/YouTube account. For linking to existing YouTube videos, no authentication is necessary at all.)

On the YouTube submission's settings page you must fill in the YouTube developers key and the authentication settings. You can get a free developer key here:

If authenticating via a master YouTube account, you need to set the YouTube master account user name and password. If authenticating student by student, you will need to enter your Google OAuth2 credentials. These are the same credentials you would use for the Google Docs repository and the Google Docs portfolio. Information on these can be found here:

The YouTube master account method is simpler to setup, and simple for students because they don't need to login. But there are very good reasons for using OAuth2 over using a YouTube master account. They are explained here.


Creating an Assignment that uses the YouTube Submission
To use the YouTube assignment submission, first create a new assignment. Note that there are two different assignments in Moodle. The old assignment is now called Assignment (2.2) because it was superceded in version 2.3, though it can still be used. The new assignment is sometimes called the 2.3 assignment. The YouTube submission only works on the new assignment, and so can only be used with Moodle 2.3 or greater. More information on the Moodle Assignment can be found here:

To create the assignment, first login as a teacher or administrator and turn on editing mode. Then from the appropriate course section click the "add an activity or resource" link. From the popup menu choose "Assignment" (not Assignment 2.2 or its sub menu options) and click the "add" button.

You will need to enter a name and description for the new assignment. Most of the other settings are optional and depend on the submission type(s) you enable for the assignment. It is possible to enable more than one submission type per assignment. For example, an assignment could accept both a YouTube video and a text outline of the contents of the video. The YouTube submission default settings are those set on the main settings page for the plugin.

Submitting a Video
When a student displays the assignment they will be presented first with a summary of the assignment and a button to "Add Submission."

After clicking "Add Submission" a list of forms will be displayed, one for each of the enabled submission types. In the case of the YouTube submission there will be a set of horizontal tabs, one for each of the enabled YouTube submission methods(upload, record, link). The operation of each of these forms is different.

The Upload Video Form
The upload form allows the student to choose a video file from their computer/device and upload to YouTube. So it is simply a matter of clicking the "choose" button, followed by the "upload" button. When the file arrives at YouTube, it is titled with the name of the assignment and the user that submitted it. It is also tagged as "unlisted." This means that it will not display in YouTube searches, but that anyone who knows the unlisted URL of the video, can see it. There will probably be a delay of a minute or sometimes several minutes before the submitted video is ready to be played back. So there is usually no cause for concern if the YouTube player reports that the video is unavailable. If however the video is a duplicate upload, or in some way violates the YouTube terms of service, it may not appear and a message to that effect will display somewhere.

The Record Video Form
This form allows the student to record a video directly from their webcam, and to upload that video to YouTube.
Unlike the upload form, the submitted video is NOT stored in the YouTube master account. Each student will be presented with a Google login form before they can begin recording. The submitted video is stored in the student's YouTube account.
To display the recording widget, the student will first need to click the "Click to Record a Video" button.
After the widget displays the student will need to both login to Google and to grant permission to the recording widget to access the device/pc camera and microphone. Submissions from the record form are also tagged "unlisted" and titled with the assignment name and user's full name.

The Submit YouTube URL Form
This form allows the student to enter a YouTube URL directly as their submission.
It is designed to allow students who have uploaded/recorded videos successfully but have somehow cleared their submission , to “re-link” that video with their assignment. This situation might also occur if a user uploads a video, but forgets to press the assignment's "save changes" button.

Grading Assignments
The grading and managing of assignments occurs outside the scope of the YouTube submission plugin. The YouTube submission plugin will simply display the YouTube player (or link) in the appropriate location. The Moodle assignment has a standard interface for grading that applies to all submissions.


This plugin was funded, and contributed back to the Moodle community, by the Apostolic Network of Global Awakening ( ). It was written by and is maintained by Justin Hunt ( )

Justin Hunt


Screenshot #0
Screenshot #1
Screenshot #2


Justin Hunt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Mon, Sep 9, 2013, 1:43 AM
    I have other two questions about its utilization:
    1) How to allow the student to submit more than one video?
    2) How can the student change the submitted video?
  • Fri, Sep 13, 2013, 5:21 AM
    Sorry, I have been very busy in another world, but I will try and look at that "notlinkedyoutubeaccount error soon.

    You can't submit more than one video currently. The student can just submit another video just as they would edit any assignment submission. They would just click the "edit submission"(I think) button.
  • Thu, Jan 30, 2014, 9:35 PM
    I am getting this error on top of almost every page, and it's keeping me from grading my students:

    Strict Standards: Declaration of assign_submission_youtube::get_files() should be compatible with assign_plugin::get_files(stdClass $submissionorgrade, stdClass $user) in /home/starman/public_html/school/mod/assign/submission/youtube/locallib.php on line 715

    Any way to fix this?
  • Fri, Jan 31, 2014, 2:59 PM
    Can you tell me your Moodle version so that I can check what is up? And also, make sure your version of the Youtube Submission is the most recent. It has not changed in a while.
  • Tue, Feb 4, 2014, 5:38 PM
    Hi, here's the version I am on: Moodle 2.5.2 (Build: 20130909)

    And yes, I am using the recent version of youtube submission.

    Thank you for your help!
  • Tue, Feb 4, 2014, 5:41 PM
    Our Youtube Submission plugin version is 2013051100.
  • My picture
    Mon, Apr 7, 2014, 11:49 PM
    Hello again, Justin,

    After testing Poodll online for Moodle 2.2, we have noticed that the quality of the recorded videos is not very good and trying to improve quality doesn't work very well as it stops video from working
    I am going to upgrade to Moodle 2.5.5 over the summer but we need a video assignment for the May presentation and I was wondering if there is an easy way of making this assignment worked with Moodle 2.2 or it is too much re-coding.

    Thank you very much for your advise
  • Tue, Sep 2, 2014, 7:37 AM
    Is anyone using this successfully with newer versions of Moodle? Seems extremely useful to avoid file compression headaches!
  • Thu, Nov 19, 2015, 8:41 AM
    hey Justin, do you know if this plugin still supports the new google/youtube apis? i've been trying to find this YouTube Developer Key and there is no where to be found, the url you list on your documentation takes me to a login page that won't go anywhere, i keep trying to login and jus goes back to the same login box. I'm afraid youtube has changed the apis and developer portal, and you can't actually get the key anymore.

    all i get is the error: Exception - Authentication with Google failed. Reason: BadAuthentication

    any ideas?
  • Thu, Nov 19, 2015, 8:44 AM
    also got an email with the following error:

    Hi Dan,
    Someone just tried to sign in to your Google Account from an app that doesn't meet modern security standards.
  • Thu, Nov 19, 2015, 9:14 AM
    This is probably broken. I just have not had the chance to work on it, and I can't see the chance anytime soon to be honest.
  • Wed, Apr 27, 2016, 9:16 AM
    Can this functionality be achieved with any other plugins, I've looked but cannot find anything, or is it possible that this will be looked at to be compatible with newer versions of moodle?
  • Tue, May 3, 2016, 4:16 PM
    I cannot tell you how delighted we would be if this were updated for Moodle 3. What help do you need to get it fixed?
  • Fri, Nov 3, 2017, 1:58 PM
    Yeah, if this can work with moodle latest version, it would be really helpful!
  • Tue, Jul 9, 2019, 4:50 PM

    Yeah, unfortunatelly it doest work with the latest moodle version. I really hope that Justin will fix it some day.
1 2
Please login to post comments