Plugin di caricamento video Discourse con YouTube e Vimeo

Nota: Questo plugin è disponibile come componente del tema, che consente un’installazione molto più semplice. Il plugin in questo post non è più supportato attivamente; si consiglia di utilizzare il componente del tema: Video Upload to YouTube and Vimeo using Theme Component

Riepilogo: Consente agli utenti di un forum Discourse di caricare video su Vimeo e YouTube direttamente dall’editor di Discourse.

:link: GitHub: GitHub - xomads/discourse-video-upload · GitHub
:arrow_right: Installazione: Segui la guida all’installazione del plugin.

Funzionalità

Tutti i membri del forum possono caricare video su Vimeo o YouTube (gli amministratori possono scegliere di abilitare uno o entrambi).

Gli amministratori possono controllare la privacy di visualizzazione e incorporamento dei video caricati su Vimeo tramite le impostazioni di amministrazione.

Gli utenti possono controllare la privacy di visualizzazione dei video caricati su YouTube direttamente dalla finestra di dialogo di caricamento.

Puoi guardare una demo del plugin qui:

Configurazione

Di seguito sono elencate le procedure di configurazione per abilitare i caricamenti su YouTube e Vimeo. Se preferisci che qualcuno lo faccia per te, puoi richiedere assistenza contattandomi, @ti0.

Per i caricamenti su YouTube

I caricamenti su YouTube vengono effettuati sul account dell’utente che carica, a differenza di quelli su Vimeo che vengono effettuati su un account comune.

Visualizza i passaggi
  • Crea un account e un progetto su https://console.developers.google.com

  • Abilita l’API YouTube Data v3

  • Configura la schermata di consenso OAuth per utenti esterni (a meno che tutti gli utenti del tuo forum Discourse non appartengano a un’unica organizzazione Google).

  • Configura le tue credenziali:

    • Crea un ID client OAuth
    • Scegli il tipo di applicazione Web
    • Aggiungi l’URL della tua istanza Discourse nella sezione Origini JavaScript autorizzate
  • Copia solo l’ID client generato

  • Vai alla pagina delle impostazioni del plugin nell’area di amministrazione di Discourse e incolla l’ID client nel campo youtube api client id.

  • Abilita i caricamenti su YouTube attivando l’impostazione: youtube upload enabled

  • Regola le opzioni predefinite di privacy di visualizzazione per YouTube, se necessario.

  • Dovresti ora essere in grado di caricare video direttamente dall’editor dei topic di Discourse su YouTube.

Per i caricamenti su Vimeo

Una volta configurato il plugin seguendo i passaggi riportati di seguito, tutti gli utenti della community potranno caricare video sul tuo account Vimeo.
Sei responsabile dei limiti e dell’utilizzo del tuo account Vimeo.

Visualizza i passaggi
  • Crea un account e un’app su Vimeo Developers:
    https://developer.vimeo.com/apps/new

  • Richiedi l’accesso al caricamento nella pagina dell’app

  • Genera un token di accesso con autorizzazioni per il caricamento

  • Vai alla pagina delle impostazioni del plugin nell’area di amministrazione di Discourse, aggiungi il token di accesso generato nell’impostazione vimeo api access token e salva

  • Abilita i caricamenti su Vimeo attivando l’impostazione vimeo upload enabled.

  • Regola le opzioni di privacy di visualizzazione e incorporamento

  • Dovresti ora essere in grado di caricare video direttamente dall’editor dei topic di Discourse su Vimeo

Pubblicazione di un video

  • Per pubblicare un video, crea un nuovo topic o rispondi a un topic esistente.

  • Clicca sul nuovo pulsante Carica su Video nella barra degli strumenti dell’editor (l’icona del video). Questo pulsante è visibile solo se hai abilitato YouTube o Vimeo (o entrambi) nelle impostazioni del plugin.

  • Scegli un file video e modifica i dettagli, come titolo e descrizione, se lo desideri.

  • Clicca sul pulsante Carica su Vimeo o Carica su YouTube.

    • I pulsanti mostrati dipendono da quali caricamenti (YouTube, Vimeo o entrambi) hai abilitato.

    • Verrà mostrato l’avanzamento del caricamento e il sistema attenderà il completamento del processo di transcodifica del video.

    • La finestra di dialogo rimarrà aperta fino al completamento della transcodifica.

    • Una volta completata la transcodifica, il link al video verrà aggiunto all’editor (a meno che non si sia verificato un errore di transcodifica).

  • Salva il post e il tuo video potrà essere visualizzato da tutti gli altri utenti della community (in base alle opzioni di privacy selezionate).

[/deta

Richieste di funzionalità

Puoi richiedere funzionalità aggiuntive o assistenza contattandomi @ti0.

Contributi

Se hai trovato utile questo plugin, considera di fare una donazione allo sviluppatore utilizzando questo link PayPal: PayPal.Me

Contributi di qualsiasi entità sono ugualmente benvenuti :slight_smile:

Se desideri migliorare il plugin, le PR sono benvenute.

34 Mi Piace

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.

11 Mi Piace

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:

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

13 Mi Piace

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

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

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

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.

7 Mi Piace
8 Mi Piace

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.)

5 Mi Piace

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.

8 Mi Piace

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

2 Mi Piace

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?

5 Mi Piace

Hello,

Thank you for creating this awesome plugin :heart: :slight_smile:

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

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

Thank you :slight_smile:

1 Mi Piace

Thanks for the feedback @Don :slight_smile:

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

3 Mi Piace

Thanks for your response! :slight_smile:

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

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

Thank you :slight_smile:

1 Mi Piace

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).

3 Mi Piace

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.

3 Mi Piace

I had not thought of this angle.

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.

4 Mi Piace

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.

5 Mi Piace

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.

4 Mi Piace

Alright no problem. :slightly_smiling_face: 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! :slightly_smiling_face:

1 Mi Piace

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 :green_heart:

1 Mi Piace

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:

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?

3 Mi Piace