# Video Upload naar YouTube en Vimeo met Theme Component

**URL:** https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079
**Category:** Theme component
**Tags:** broken
**Created:** [13 november 2020 om 21:16 UTC](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079 "2020-11-13T21:16:22Z")
**Posts on this page:** 1
**Showing post:** 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: [13 november 2020 om 21:16 UTC](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079/1 "2020-11-13T21:16:22Z")

</div>

This new theme component enables video uploads from the Discourse composer to YouTube and Vimeo. For those already familiar with [the plugin I developed recently](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569), the same is now available in this Theme Component which can be added to any theme. This makes for a much easier installation and works in exactly the same way as the plugin.

### 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 (everything is same in the component except for the settings page. The component settings page is found under Admin \> Customize \> Components \> Video Upload):

[![](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

**Important** : For theme components, you need to make sure you activate the component for the themes used on your instance (either click `Add all themes` or choose the themes you want).

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/7/37e188a773f3cabecd69e21f9d196a0676ac712a.png)

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 component 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 component 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)
> 
> - Generate an access token with Upload permissions
> 
> - Go to the component 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).

### Feature Requests

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

### Contributions

If you found this theme component helpful, please consider donating to the 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 component / plugin, PRs are welcome.

| | | |
| --- | --- | --- |
| 👓 | **Preview** | [Theme creator preview](https://theme-creator.discourse.org/u/ti0/themes/4081) |
| 🛠 | **Repository** | [discourse-video-upload](https://github.com/xomads/discourse-video-upload-component) |
| ❓ | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

---

_[View the full topic](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079)._
