Your Moodle version

TinyMCE: YouTube Anywhere

tinymce_youtube
Maintained by Picture of Justin Hunt Justin Hunt
YouTube Anywhere enables direct recording and uploading into YouTube from the TinyMCE HTML editor.
5k
190
4

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.

Requirements
* 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.

Installation
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:
https://console.developers.google.com

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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

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 Justin Hunt
    Fri, Jan 17, 2014, 8:12 AM
    Isabelle, I have not encountered this myself. Generally once the connection is made it is pretty reliable. I have a lot of work to do on the plugin over the next few weeks and I will add looking at this to that. If you try from a different location is it better? ie Recording from behind a firewall gives a less reliable connection. But you might find it works better from home. That may not solve the problem, but it would give an idea of where it was coming from.
  • Picture of Dan Wheaton
    Fri, May 9, 2014, 12:55 PM
    I ahve been successfully using this all year, setup as a master account, but over the last couple of weeks it has stopped working.
    We have put in a new firewall, but the vendor is suggesting its not them.

    I can display videos fine via the plugin, but upload just gives me spinning bubbles forever. Are there are logs or anything I can look at to help troubleshoot ??
  • Picture of Dan Wheaton
    Fri, May 9, 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, May 9, 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.

    Thanks,
    Dan.
  • Picture of Justin Hunt
    Mon, May 12, 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, Nov 21, 2014, 10:02 PM
    To: Leon hedding

    ERROR "NoLinkedYouTubeAccount" is described here:
    http://apiblog.youtube.com/2011/10/introducing-google-account-support-and.html

    You need to create a channel in your youtube account.
  • feeling fuzzy
    Tue, Feb 3, 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, Feb 4, 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, Jun 12, 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, Jun 13, 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, Jun 15, 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."

    Regards
    Phil
  • Picture of Justin Hunt
    Wed, Jun 17, 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, Jun 17, 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.

    Regards
    Phil
  • Picture of Justin Hunt
    Tue, Jun 23, 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, Jul 2, 2015, 11:14 PM
    OK Justin thank you for your time I appreciate it.
    Phil
1 2 3
Please login to post comments