![]() ![]() If you don't trust the source, consider hosting resources on your own site instead. ⚠️Never add a source you don't trust to your site's CSP. Or carefully check that all of the blocked resources are trustworthy if they are, include their sources in the CSP of your site. (Recommended) If you're using an allowlist for `'script-src'`, consider switching from an allowlist CSP to a strict CSP, because strict CSPs are more robust against XSS. To fix this issue do one of the following: 1. Your site’s CSP is allowlist-based, so resources must be listed in the allowlist in order to be accessed.Ī site’s Content Security Policy is set either as via an HTTP header (recommended), or via a meta HTML tag. Some resources are blocked because their origin is not listed in your site’s Content Security Policy (CSP). The upload is stuck at Authenticating and the following error is shown in Chrome Console If we can skip this Waiting process it will be I don’t know if it’s just me, but I think something is broken. It seems works but if Waiting to convert process take more time than 60sec it will paste the link same as before. ![]() I think it is depending how big is the uploaded file. With small uploads the waiting time is few sec ~4-5sec, medium is ~10-15sec, large is ~40-45sec. I tested with small ~10mb, medium ~500mb and large uploads ~ 2gb. I changed this to 60sec for us until comes a better solution this will enough most of the uploads to skip the Waiting process request. Because Vimeo Api not support Webhooks etc… So we need to send request periodically to find out the Transcoding process still processing or it is done. If I am correct it means after the Upload process it send a request to Vimeo every 10 sec which is while the Waiting process comes back as the video complete. On Vimeo there is Waiting for convert section after Upload but before Convert.Ĭonst STATUS_POLLING_INTERVAL_MILLIS = 10000 If you would like to enhance the component / plugin, PRs are welcome. If you found this theme component helpful, please consider donating to the developer using this Paypal link: PayPal.Meīig and small contributions are equally welcome ![]() You can request additional features or support by contacting me Contributions (depending on privacy options you selected). Save the post, and your video can be viewed by all other community users Once transcoding is complete, the video link will be added to the composer (unless there was a transcoding error). The modal will remain open till the transcoding is complete. It will show you upload progress, and then it will wait till the video completes the transcoding process. The buttons shown will depend on whether you have enabled YouTube / Vimeo uploads (either or both). This button is only visible if you have enabled either YouTube or Vimeo (or both) in the plugin settings.Ĭhoose a video file and edit the details such as title and description, if you wish.Ĭlick the Upload to Vimeo or Upload to YouTube button. To post a video, create a new Topic or reply to an existingĬlick the new Upload to Video button in the composer toolbar (the video icon). You should now be able to upload videos from the Discourse topic composer directly to Vimeo See this vimeo page for privacy options: privacy.view and privacy.embed.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Įnable Vimeo uploads by enabling the vimeo upload enabled setting. Generate an access token with Upload permissions You are responsible for limits and usage of your Vimeo account.Ĭreate an account and app on Vimeo Developers: Once you setup the component with the steps below, all community users will be able to upload videos to your Vimeo account. You should now be able to upload videos from the Discourse topic composer directly to YouTube. Go to the component settings page in Discourse Admin, and paste the client ID in the youtube api client id field.Įnable Youtube uploads by enabling this setting: youtube upload enabledĪdjust the default view privacy options for Youtube if required. Add your Discourse instance URL in the Authorized Javascript origins section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |