تحميل الفيديو إلى YouTube وVimeo باستخدام مكون السمة

I’m on this step

It’s asking me what scopes to select for OAuth. Out of the 34 available, which ones need to be selected?

Screenshot of the Update selected scopes screen

You should only need upload related permissions. These are the only ones required for the plugin, you can add anything you want though better not to unless you really need them.

إعجاب واحد (1)

Thanks @ti0 !

Google is now asking us to do the following

  1. Answer: How will the scopes be used? Explain to Google why you need these scopes, how you will use them, and why more limited scopes aren’t sufficient.

  2. Demo video: how will the scopes will be used? A YouTube video link is required when selecting sensitive or restricted scopes. Your YouTube video should demonstrate the OAuth grant process by users and explain, in detail, how you’ll use sensitive and restricted scopes within the app’s functionality for each OAuth client belonging to the project. Learn more The video should clearly show the app’s details such as the app name, OAuth client ID, and so on.

Could we create a template answer that is then added to this documentation?

I’ll try my best with #1 and definitely need help with #2.

  1. Users of our app will be able to upload videos directly to their Youtube account via our online forum at hub.youthpowercoalition.org. We need to be able to view their YouTube account and manage their YouTube videos in order to upload the video. Users choose their desired privacy level.

What do you think?

This sounds a bit dangerous because you don’t actually need to be able to view their account. The permissions give the app the ability to list their existing videos and add new ones.
I think just mentioning the first line is sufficient, and additionally you can put:

The permissions will give users the ability to upload and embed videos directly within our private instance of the open source forum software called Discourse (htttps://discourse.org). The app uses plugins to enable different functionality, the open source plugin for uploading videos is listed here: Video Upload to YouTube and Vimeo using Theme Component

I think this should be sufficient for #1.
For #2 you can make a quick demo of the upload process or use this one :

إعجاب واحد (1)

The language and video link you provided worked well, @ti0, thank you!

Here’s the next message I got from the Google Cloud Trust & Safety Team regarding consent.

We reviewed your project and found that your privacy policy Privacy - Youth Power Hub doesn’t meet our requirements for the Google API Service: User Data Policy. If you want to continue with the verification process, please make sure the privacy policy linked to your project follows these requirements:

Privacy Policy Requirements

  • The URL in your project points to a privacy policy on a publicly accessible domain.
  • The privacy policy is hosted and accessible in the domain of your website.
  • The privacy policy is accessible from the app’s home page.
  • Users can view the privacy policy.
  • The privacy policy clearly describes the way your application accesses, uses, stores, or shares Google user data.
  • The privacy policy is linked to the OAuth Consent Screen on the Google API Console.
  • You only use Google user data in the ways described in your published privacy policy.

Limited Use Requirements

If your app uses restricted scopes, we’ll check that your privacy policy follows our Limited Use requirements.

You can find more information in the OAuth Application Verification FAQ.

Is there recommended language for the privacy policy?

إعجاب واحد (1)

مرحباً!
أنا أجرب تحميل فيديو على يوتيوب، لكنني حصلت على خطأ جافاسكريبت هذا:

Uncaught {error: 'idpiframe_initialization_failed', details: 'Cookies are not enabled in current environment.'}

ولكن على حد علمي، ملفات تعريف الارتباط ممكّنة…

هل يمكنك التحقق مما إذا كان قد تم تعطيل ملفات تعريف الارتباط للجهات الخارجية؟ هل لديك هذا في شريط العناوين الخاص بك؟ image.png

إعجاب واحد (1)

صحيح. أعتقد أن جوجل تقوم بتعطيل ملفات تعريف الارتباط الخاصة بالجهات الخارجية افتراضيًا، ولكن قد أكون مخطئًا…

لدي الآن خطأ آخر:

POST https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus&uploadType=resumable 401
Unauthorized

الأذونات صحيحة على الرغم من ذلك:

لقد اتبعت هذه الخطوات في عملية تحميل الفيديو من خلال واجهة Discourse:

هل حصلت على الرمز المميز؟ يجب عليك أولاً المصادقة مع جوجل والحصول على رمز مميز، يبدو أنك لا تملك ذلك.

إعجاب واحد (1)

هل كنت تقصد معرف العميل؟

لقد قمت بتعيينه في إعدادات مكون السمة:


تعديل: لم أتمكن من تشغيل تحميل Vimeo أيضًا.

الأمر غريب لأنني لم أواجه مشكلة مع كل من Youtube و Vimeo في المرة الأخيرة التي جربت فيها مكون السمة الخاص بك. :confused:

رسالة الخطأ:

POST https://api.vimeo.com/me/videos 401 (Unauthorized)

إعجاب واحد (1)

ما الذي نستخدمه في Vimeo لمقاطع فيديو Pinterest :movie_camera: :movie_camera: :movie_camera:

هل قام أي شخص بتثبيت واستخدام مكون السمة هذا بنجاح مؤخرًا؟

نعم، أستخدمه مع Vimeo. :slightly_smiling_face:

هل رأيت أي مشكلة في لقطات الشاشة الخاصة بي بالصدفة؟ أنا محبط بعض الشيء لأنني لم أتمكن من معرفة كيفية عمل مكون السمة هذا عندما كنت قادرًا على ذلك من قبل. :face_with_raised_eyebrow:

إعجاب واحد (1)

مرحباً،

لم أحاول إعداد نسخة يوتيوب ولكن مع فيميو، اتبعت الفيديو من المنشور الأصلي.

حدد (أعتقد أن هذه قد تكون مشكلتك) في صفحة إنشاء رمز وصول الخيار المصادق عليه (أنت) وفي النطاقات حدد عام (مطلوب) و خاص و تحميل

ثم انقر فوق إنشاء وانسخ المفتاح إلى vimeo api access token في إعدادات Discourse.

إعجابَين (2)

مرحباً،

أحاول تطبيق تحميل يوتيوب. جميع العمليات التي اتبعتها كما هو مقترح لا تزال لا تعمل وتتعثر فقط في إظهار المصادقة.

أم هل هناك أي إضافة بديلة لتحميل أي ملف إلى المجتمع؟

إعجاب واحد (1)

“لتحميل أي ملف إلى المجتمع”، بالمعنى الدقيق للكلمة، ما عليك سوى تغيير الإعداد الامتدادات المصرح بها إلى أي امتداد.
ولكنك ستكون مقيدًا بـ الحد الأقصى لحجم المرفقات، والذي يمكنك زيادته، على الرغم من أن Discourse ليس المقصود منه أن يكون خدمة استضافة ملفات، وقد رأيت أشخاصًا يواجهون مشكلة مع الملفات الكبيرة جدًا على الرغم من أن الإعدادات كانت صحيحة.

ولكن أفترض أن ما تريده حقًا هو طريقة سهلة لمستخدميك لعرض مقاطع الفيديو الخاصة بهم في Discourse.

على حد علمي، لا يوجد مكون إضافي أو مكون سمة آخر غير هذا، وإذا لم تتمكن من إعداده لأي سبب من الأسباب، فلن يتمكن المستخدمون لديك سوى الاعتماد على حلول خارجية متوافقة مع Discourse (بالمعنى الذي يمكن فيه تضمين الوسائط في منشور Discourse)، مثل التحميل إلى Youtube أو Vimeo أو أي خدمة أخرى متخصصة أو سحابية.

3 إعجابات

هل هناك أي فرصة لدعم التحميل في الدردشة؟

ليس من جانبي، إذا أراد شخص ما إضافة هذا الدعم، فهو مرحب به للمساهمة بطلب سحب.

إعجابَين (2)

مرحباً @Canapin
هل قمت بحل هذه المشكلة مع يوتيوب؟
لدي نفس المشكلة بالضبط…
شكراً لك!

إعجاب واحد (1)