# Discourse Video Upload Plugin met YouTube en Vimeo

**URL:** https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569
**Category:** Plugin
**Tags:** unmaintained
**Created:** [28 oktober 2020 om 18:32 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569 "2020-10-28T18:32:22Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [28 oktober 2020 om 18:32 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/1 "2020-10-28T18:32:22Z")

</div>

**Note** : This plugin is available as a theme component which enables a much easier installation. The plugin in this post is not actively supported, it is recommended to use the theme component : [Video Upload to YouTube and Vimeo using Theme Component](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079)

**Summary** : Allows users on a Discourse forum to upload videos to Vimeo and YouTube directly from the Discourse composer.

🔗 **GitHub** : [GitHub - xomads/discourse-video-upload · GitHub](https://github.com/xomads/discourse-video-upload)  
➡ **Install** : Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157).

### Features

All forum members can upload videos to Vimeo or YouTube (admins can choose to enable either or both).

Admins can control the view and embed privacy of the videos uploaded to Vimeo using admin settings.

User can control view privacy of the videos uploaded to YouTube from the upload modal.

You can watch a demo of the plugin here:

[![](https://global.discourse-cdn.com/meta/original/4X/6/1/d/61da69f9379b4b91ec1e00dfd2f2681942238da8.jpeg "Discourse Video Upload Plugin with YouTube and Vimeo Demo") ](https://vimeo.com/474476485)

### Configuration

The developer setup for enabling uploads to YouTube and Vimeo are listed below. If you prefer someone to do it for you, you can request support by contacting me, @ti0.

### For YouTube Uploads

YouTube uploads go to the uploaders account, unlike Vimeo uploads which go to a common account.

> **View steps**
>
> - Create an account and project at [https://console.developers.google.com](https://console.developers.google.com)
> 
> - Enable the YouTube Data API v3
> 
> - Setup the OAuth consent screen for External users (unless all users on your Discourse forum belong to one Google organization).
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/b/9/b9551db2408411188b8f8417efd3425184004117.png)
> 
> - Setup your credentials:
> 
> - Copy the generated client ID only
> 
> - Go to the plugin settings page in Discourse Admin, and paste the client ID in the `youtube api client id` field.
> 
> - Enable Youtube uploads by enabling this setting: `youtube upload enabled`
> 
> - Adjust the default view privacy options for Youtube if required.
> 
> - You should now be able to upload videos from the Discourse topic composer directly to YouTube.

### For Vimeo Uploads

Once you setup the plugin with the steps below, **all community users will be able to upload videos to _your Vimeo account_.**  
You are responsible for limits and usage of your Vimeo account.

> **View steps**
>
> - Create an account and app on Vimeo Developers:  
> [https://developer.vimeo.com/apps/new](https://developer.vimeo.com/apps/new)
> 
> - Request Upload Access on the app page
> 
> - Generate an access token with Upload permissions
> 
> - Go to the Plugin settings page on your Discourse Admin, and add the generated access token in the `vimeo api access token` setting, and save
> 
> - Enable Vimeo uploads by enabling the `vimeo upload enabled` setting.
> 
> - Adjust view and embed privacy options
> 
> - You should now be able to upload videos from the Discourse topic composer directly to Vimeo

## Posting a video

- To post a video, create a new Topic or reply to an existing  
topic.

- Click the new `Upload to Video` button in the composer toolbar (the video icon). This button is only visible if you have enabled either YouTube or Vimeo (or both) in the plugin settings.

- Choose a video file and edit the details such as title and description, if you wish.

- Click the Upload to Vimeo or Upload to YouTube button.

- Save the post, and your video can be viewed by all other community users  
(depending on privacy options you selected).

[/deta

### Feature Requests

You can request additional features or support by [contacting me](https://meta.discourse.org/u/ti0/summary) @ti0.

### Contributions

If you found the plugin helpful, please consider donating to the plugin developer using this Paypal link: [PayPal.Me](https://paypal.me/ti0it)

Big and small contributions are equally welcome 🙂

If you would like to enhance the plugin, PRs are welcome.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [29 oktober 2020 om 16:50 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/2 "2020-10-29T16:50:31Z")

</div>

Awesome plugin, people have asked for something similar for years now!

One suggestion I have is hiding the “Uploading to Video” button on the modal unless the file returned from the File Picker has one of the supported video extensions.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [29 oktober 2020 om 17:06 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/3 "2020-10-29T17:06:22Z")

</div>

> [@Falco](#):
>
> One suggestion I have is hiding the “Uploading to Video” button on the modal unless the file returned from the File Picker has one of the supported video extensions.

You could go one step further here - hide the button, and make the whole thing completely transparent to the user. If they upload a video, it goes to vimeo. If they upload something else, it works as normal.

We have an API specifically for that - here’s an example use:

> <https://github.com/discourse/discourse-brightcove/blob/5473a6cc614e4b33c1ee1c7baa059cf8c24ffa3c/assets/javascripts/discourse/initializers/discourse-brightcove.js.es6#L88-L99>

(plus, this API makes it work seamlessly with drag&drop uploads as well)

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [29 oktober 2020 om 19:31 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/4 "2020-10-29T19:31:58Z")

</div>

> [@david](#):
>
> You could go one step further here - hide the button, and make the whole thing completely transparent to the user.

I don’t know about this - I would like to know where my videos are being uploaded. There are many issues nowadays concerning privacy and related matters, and I feel it’s good to know where stuff goes, especially if it’s off-platform

> [@david](#):
>
> (plus, this API makes it work seamlessly with drag&drop uploads as well)

I do like this possibility, I may implement this in the next update.

> [@Falco](#):
>
> people have asked for something similar for years now!

any idea where ? I can perhaps post an update on those topics to let them know of the existence of this new plugin.

> [@Falco](#):
>
> hiding the “Uploading to Video” button on the modal unless the file returned from the File Picker has one of the supported video extensions.

since Discourse has not had this feature before, I felt it would be good if people could see that now there is a possibility to upload videos by keeping the button explicit (for those who have the plugin).

perhaps in later updates I can make these changes.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [29 oktober 2020 om 19:38 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/5 "2020-10-29T19:38:37Z")

</div>

> [@ti0](#):
>
> any idea where ? I can perhaps post an update on those topics to let them know of the existence of this new plugin.

> [@Handling uploaded videos](https://meta.discourse.org/t/handling-uploaded-videos/79917):
>
> We have a client who would like to upload video - but this could be any video and would need transcoding. Discourse is clearly not a video hosting platform - so we were thinking about trying to involved a 3rd party transcoder, or possibly some sort of direct upload to Vimeo or similar after the user uploads the file. Does this sound like a reasonable approach and any ideas on how this might be achieved? I assume that a customised Onebox view may help somewhere?

> [@The way to go, with a posted video](https://meta.discourse.org/t/the-way-to-go-with-a-posted-video/151761):
>
> I know Discourse is for conversations, not for multimedia. In the industry that our forum is aimed at, a video is sometimes very useful to explain a case. What is a good way to deal with this? People, and therefore forum participants, are naturally lazy. I don’t feel like having to explain to enthusiastic participants that they should put it on a (private) YouTube page first, and then put it on Discourse. Should I increase the video size, and then, together with the other moderators, put the…

> [@Do you allow video uploads on your Discourse forums?](https://meta.discourse.org/t/do-you-allow-video-uploads-on-your-discourse-forums/143135):
>
> Hey DiscoFam! I have a best practices type question… I’m not sure whether I want to allow and encourage video uploads on my forums. While there may be some really good vid content that’s added, there will likely be a lot that is not really timeless. The audience for our forums come from Facebook where almost every post has a pic or video attached. about 2 out of 5 posts are timeless posts. I want to encourage folks to use Youtube and Facebook as the main source for video hosting and then just…

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [30 oktober 2020 om 04:17 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/6 "2020-10-30T04:17:51Z")

</div>

> [@ti0](#):
>
> I don’t know about this - I would like to know where my videos are being uploaded. There are many issues nowadays concerning privacy and related matters, and I feel it’s good to know where stuff goes, especially if it’s off-platform

You could use a second modal on the client that discloses the Vimeo upload and asks for any extra information (title?) they want to provide. (For drag and drop, this would be the first seen modal.)

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [1 november 2020 om 22:50 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/8 "2020-11-01T22:50:57Z")

</div>

**Important update**  
I updated the plugin so it is now the Discourse _Video_ Upload plugin (earlier it was Discourse Vimeo Upload plugin). Now the plugin supports uploads directly to YouTube and Vimeo. Please check the updated guide in the first post for setup instructions.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [8 november 2020 om 11:34 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/9 "2020-11-08T11:34:52Z")

</div>

> [@ti0](#):
>
> \*\* YouTube uploads go to the uploaders account

Is there absolutely no way to upload them on a common account like it’s done with Vimeo?

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [8 november 2020 om 12:34 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/10 "2020-11-08T12:34:09Z")

</div>

I tried desperately to make this happen, there is no reasonable way to do this.

Also YouTube’s api limits are much worse than Vimeo, so you can only do 6 videos a day per account, and no good way to increase that (you have to request a limit increase, and if you tell them many people share one account they will stop it).

On the other hand, Vimeo let’s you just pay $7 or more a month and you have practically no limits.

Any reason you prefer Youtube?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10 november 2020 om 04:13 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/11 "2020-11-10T04:13:37Z")

</div>

Hello,

Thank you for creating this awesome plugin ❤ 🙂

Is that possible to make a limitation for max upload video size?

I just installed it and there are warning messages in chrome dev.

 ![Screen Shot 2020-11-10 at 5.15.02 AM](https://global.discourse-cdn.com/meta/original/3X/6/8/68412df09201a30eeba24935ad58e31921daa63d.png)

Thank you 🙂

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [10 november 2020 om 12:39 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/12 "2020-11-10T12:39:54Z")

</div>

Thanks for the feedback @Don 🙂

Regarding the warnings, I don’t think they are coming from this plugin, are you sure it’s related? I’m not using whitelist anywhere.

And about the feature request, certainly it’s _possible_. I was hoping people would contribute to enhance the plugin, preferably through donations / paying for support or feature upgrades, small or big.  
Any thoughts on that? Pm if you prefer

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10 november 2020 om 13:32 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/13 "2020-11-10T13:32:49Z")

</div>

Thanks for your response! 🙂

I use whitelist in settings. Is that related with that warning?

 ![settings-video](https://global.discourse-cdn.com/meta/original/3X/6/0/60296373ee29d34d5e3d46f9a400f3c2ddaa4513.png)

If i disable the plugin these warnings not appears so it may be cause by this plugin.

Thank you 🙂

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [10 november 2020 om 14:05 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/14 "2020-11-10T14:05:15Z")

</div>

> [@ti0](#):
>
> YouTube’s api limits are much worse than Vimeo

It isn’t quite the same. Vimeo business model is paid subscriptions. So, as long as you pay, you can upload more. If it becomes a problem, just pay more, and you will pretty much always be good to go. If I’m not mistaken, there won’t be any easy way to monetize the video content, except by adding ads in the video yourself (we could always imagine your plugin doing this one day, but you would still need to find the advertisers, make them pay, etc. And it wouldn’t be easy to change ads and so on. Not very good in any case).

On the other end, Youtube would allow a forum to monetize easily the uploaded video content. If that was uploaded to an account belonging to the forum. A quick search say that limits are pretty high (100 per day, with a limit getting put in place at 50 per day if you hit 100 one day), BUT seem far more limited when you use the API, as you’re saying (I also saw the number of 6 per day).

It would be a great option to be able to choose how to upload to Youtube: Common account or individual accounts. The big question is if forum owners would be able to get this limit increased with youtube. I don’t think you should tell them several people use the account, but that the account belong to an entity (the forum), and it’s the entity which uploads. A question of how you spin it. You would maybe need (and that would be your best interest in any case if it’s with your account) to check the videos before upload: An option to store the videos locally for approval before upload to youtube ? And an option to limit the number of uploads per day (to be able to start with a limit of 6) ?

That’s a few suggestions. Do what you want with them (they rely on the fact that it would be possible to get the limit increased. I’m not sure at all how possible that is. But it sure would be great).

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [10 november 2020 om 14:12 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/15 "2020-11-10T14:12:51Z")

</div>

> [@Don](#):
>
> I use whitelist in settings. Is that related with that warning?

when I try that I still don’t get the warning you are seeing. Sorry, cannot help with this because I am not seeing the warnings - perhaps it is specific to your instance ? I am using beta5 (the most recent release), and not seeing those warnings.

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [10 november 2020 om 14:19 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/16 "2020-11-10T14:19:25Z")

</div>

> [@Mevo](#):
>
> Youtube would allow a forum to monetize easily the uploaded video content

I had not thought of this angle.

> [@Mevo](#):
>
> It would be a great option to be able to choose how to upload to Youtube: Common account or individual accounts. The big question is if forum owners would be able to get this limit increased with youtube. I don’t think you should tell them several people use the account, but that the account belong to an entity (the forum), and it’s the entity which uploads. A question of how you spin it.

I’m sure it’s possible to get the limit increased, it is certainly in YTs best interest to do this especially if monetization is involved.

Your suggestions are great, and quite possible to implement with enough effort. These are pretty significant changes to the plugin and require quite a lot of work, so I would only be interested in doing them if someone (or a group) is willing to pay for feature development.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [10 november 2020 om 15:35 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/17 "2020-11-10T15:35:10Z")

</div>

What about copyright issues? You’re basically giving free access to your own YouTube/Vimeo channel and allow people to upload anything they like into it - that sounds like a DMCA disaster waiting to happen, which might have personal repercussions for you.

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [10 november 2020 om 15:54 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/18 "2020-11-10T15:54:58Z")

</div>

certainly an issue, that’s why I think the Vimeo option should only be used by communities where the members can be trusted to be responsible. and that’s why there is a **strong** message indicating users are responsible for their vimeo account.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10 november 2020 om 17:29 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/19 "2020-11-10T17:29:26Z")

</div>

Alright no problem. 🙂 I use the latest Discourse. I will check the other plugins etc maybe this is a conflict issue or something like that. Are you familiar with these warnings? It will cause any issue or I can just skip these. I didn’t notice any issue on the site usage. Thanks anyway I love this plugin! 🙂

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [10 november 2020 om 17:39 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/20 "2020-11-10T17:39:33Z")

</div>

I don’t think it should cause any issue, since it’s just a warning. And I reviewed the code, there is no use of whitelist anywhere.  
Glad to see you love it 💚

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [11 november 2020 om 20:51 UTC](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569/21 "2020-11-11T20:51:26Z")

</div>

I really appreciate this plugin’s feature though I don’t use it right now for various reasons but I’ll keep an eye on the development. It seems nicely implemented.

Also, if nobody can be done about the 6 videos a day API limited, I really like this idea:

> [@Mevo](#):
>
> It would be a great option to be able to choose how to upload to Youtube: Common account or individual accounts.

> [@ti0](#):
>
> On the other hand, Vimeo let’s you just pay $7 or more a month and you have practically no limits.
> 
> Any reason you prefer Youtube?

I’m not sure the plugin feature would be used by my community. This community is mainly split between our Discourse forum and a Facebook group (which I don’t own), and most of the people who share videos do it on Facebook for obvious reasons.  
I guess I could try with a free Vimeo account and see how it goes.

Do you have long-term goals that you want to fulfill no matter what, or do you think your involvement will rely much on donations earnings?

[Next page](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569.md?page=2)
