TinyMCE: YouTube Anywhere

Maintained by Picture of Justin Hunt Justin Hunt
YouTube Anywhere enables direct recording and uploading into YouTube from the TinyMCE HTML editor.
139 sites
12 fans

YouTube Anywhere allows students and teachers to record directly from webcams and mobile devices, or to upload video files, into YouTube. 

YouTube takes care of the storage of the videos and handles all the pesky file conversions and playback stuff.

Care has been taken to give the Moodle administrator control over who can access YouTube Anywhere. Authentication with YouTube can be done  using the same Google keys as used in the Google Docs repository.

* Moodle 2.4 or greater
* Internet access
* Multimedia plugins filter enabled (to turn YouTube links into YouTube players)
* YouTube API keys (Public API Key, OAUTH2 client id, OAUTH2 client secret).
These are available free of charge from YouTube/Google.

The YouTube Anywhere plugin is contained in the youtube folder. That folder should be placed in the following directory of a Moodle installation: [PATH TO MOODLE]/lib/editor/tinymce/plugins
Other folders in that directory will include, spellchecker and moodlemedia.

Once the folder is in place Moodle will be able to install the plugin. Login as the site administrator. Moodle should detect the YouTube Anywhere plugin and present a page with plugin information and the 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 YouTube Anywhere. The settings can be accessed by the administrator at any time from the Moodle menu:
Site Administration -> Plugins -> Text Editors->TinyMCE HTML Editor -> YouTube Anywhere

Post Installation Settings
You will need several keys to authorize access to the YouTube API.
To get this go to:

You will need to create a project for your website. Only one is necessary for your Moodle site, and you can use the same keys for Google Docs or Picasa. If you are running either of those with Moodle, you can use the keys you already have. You will need to create and get:
i) a public api key
ii) an oauth2 client id
iii) an oauth2 client secret

This screenshot indicates how your API project on Google might look.

Google Developers Console

More information on getting Google OAuth2 set up for Moodle is here: https://docs.moodle.org/27/en/Google_OAuth_2.0_setup 

There are two authentication methods possible, "master account" and "student account."
If using master account authentication, you will need to enter a valid YouTube username and password.

More detailed documentation can be found in a PDF file, that should accompany this plugin.


Screenshot #0
Screenshot #1
Screenshot #2


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

Comments RSS

Show comments
  • Picture of Dan Wheaton
    Fri, 9 May 2014, 12:55 PM
    Oh, I should also add, I can successfully upload to the same youtube account outside of moodle.
  • Picture of Dan Wheaton
    Fri, 9 May 2014, 2:05 PM
    Hi Justin
    Just 1 more thing, could you go into more detail about what needs to be commented to get the manual enter URL submission that Roland was referring to. I played aorund commenting in and out lines for about half an hour, but couldnt get the desired behavour.

  • Picture of Justin Hunt
    Mon, 12 May 2014, 8:35 AM
    Hi Dan

    One other user had a similar problem a few weeks ago where it just up and stopped working. After a lot of trying, we just couldn't find the problem. They also used master authentication. There is only the standard apache error logs, and they may not show anything. I sometimes get some information by using chrome developer tools, network tab, and seeing what happens with the request to the youtube server.

    I am not sure how better to explain the URL submission thing than I have above. Perhaps send me a "message" with your email address, and I can look at it.
  • Picture of Ricardo D
    Fri, 21 Nov 2014, 10:02 PM
    To: Leon hedding

    ERROR "NoLinkedYouTubeAccount" is described here:

    You need to create a channel in your youtube account.
  • feeling fuzzy
    Tue, 3 Feb 2015, 3:20 AM
    Hi Justin,

    I've just set-up Youtube anywhere with master authentication. I had expected that students would be able to record a video and that the result would be stored on the master account. However, when you start recording a video you are still asked to log in with your own google account - and the result gets stored there.

    Is this a known issue, or simply wrong expectation on my part (as in: there's no way to record video's this way without manually checking in with YouTube first)?
  • Picture of Justin Hunt
    Wed, 4 Feb 2015, 9:09 AM
    Hi Michael. Although it seems neat and simple to use master account authentication. In actual fact it is not so simple. The YouTube recorder does not use master account authentication. The user is required to login to YouTube.
  • Picture of Philip Morris
    Fri, 12 Jun 2015, 4:56 PM
    Hi I have followed the setup documentation as closely as possible but have a couple of errors. On the Upload a Video tab I do not have a box or button to select a file or to browse folder, what I see is the home page of my website see can anyone help with this please?

    thank you
  • Picture of Justin Hunt
    Sat, 13 Jun 2015, 4:44 PM
    That is an iframe in the popup. An error has ocurred and so you don't get the nice upload form that TinyMCE prepares for you in the iframe. Instead you are seeing a Moodle error page. What is that error? Thats the key thing. Note changes at YouTube mean I am not sure how well this plugin is working right now.
  • Picture of Philip Morris
    Mon, 15 Jun 2015, 6:37 PM
    Hi Justin, thanks for your reply, the error I am seeing is as follows,

    "400. That’s an error.
    Malformed request. That’s all we know."

  • Picture of Justin Hunt
    Wed, 17 Jun 2015, 10:22 AM
    OK. Hmmm. I don't want to leave you in the cold, but this is one of the plugins I am having difficulty finding time to maintain. If its critical for you, please send me a message and we can make a "job" of it. Once PoodLL is all clear for 2.9 (next week) I will do a bit of an audit on the YouTube plugins and see whats up.
  • Picture of Philip Morris
    Wed, 17 Jun 2015, 5:48 PM
    Hi Justin, thank you for your reply, this is certainly no show stopper and there may be other solutions I am unaware of. Perhaps if I explain my reasons for wanting this plugin or something similar. We are a special needs primary school we work in the main with children who have profound and multiple learning difficulties, we also have students with ASD. We really want to engage the pupils parents with their child's education. We have an ample number of iPads in the school, given the nature of the children's difficulties particularly in recording of attainment, the iPad is a useful tool for creating a record of achievement. We don not have an abundance of webspace, certainly not enough to drop large amounts of video on. We would like a plugin that is able to allow teachers to very easily upload and link video created on the Ipads with the children's "Parent Login Areas" on our website. Presently parents are able to log into the website and see classwork and photos of their child's work. All of the existing video on the website is either on Vimeo or Youtube and is always uploaded by me. It is not practical for me to upload all the potential content for each child to the website. This is why the YouTube plugin with a master account looked like an ideal solution for us. Hope that helps,

    We are in the process of migrating our Moodle site away from the county council to a private hosting company as the county service will stop next year. We are running 2.7+ with the formal white template and once the migration is complete and a suitable template is available we will upgrade to the latest 2.9 build. I am on target to complete the migration move before August and once all the pages are on the external provider I anticipate the upgrade to 2.9 would be complete before the end of the year.

  • Picture of Justin Hunt
    Tue, 23 Jun 2015, 10:36 PM
    I see. Realistically the best thing is really to port the TinyMCE YouTube Anywhere to Atto for Moodle 2.9 and beyond. Its been on my "to do" list for well over a year now. But I will try over the summer to do that.
  • Picture of Philip Morris
    Thu, 2 Jul 2015, 11:14 PM
    OK Justin thank you for your time I appreciate it.
  • Picture of Mike McLaughlin
    Fri, 19 Feb 2016, 10:10 AM
    Good Afternoon all.
    Is this plugin still working I have heard that there some issues with this plugin I believe it stopped working a few years ago as it was not set up to use the new YouTube API. It kept returning a server error rather than uploading the videos so we had to turn that function off.
    I was looking forward to using it for this particular function: 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.
    Any information would be great.

  • Picture of Justin Hunt
    Sun, 21 Feb 2016, 8:23 AM
    hi Mike, I have not really had a chance to test it recently, but I think its broken. To be honest, I don't see much future development for this. I feel a bit bad about that but an Atto version is really a better investment of time.
1 2 3
Please login to post comments