youtube-video-upload | Upload videos starting from a declarative yaml file | File Upload library
kandi X-RAY | youtube-video-upload Summary
kandi X-RAY | youtube-video-upload Summary
Upload videos starting from a declarative yaml file
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Upload credentials from options
- Get a user s credentials
- Retrieve application default Credentials
- Upload a single video
- Returns the default credentials
- Resumable upload function
- Save credentials to a file
- Dump creds to a dict
- Return a dictionary of all available snippets
- Download a video
- Get the category number
youtube-video-upload Key Features
youtube-video-upload Examples and Code Snippets
Community Discussions
Trending Discussions on youtube-video-upload
QUESTION
I am currently working on an application that manipulates enormous streams of videos and I currently implement a "share on youtube" button so a user ( any user of the application that provided my app with an access token for his youtube account ) can share small parts ( lets say 2 to 7 minutes ) videos on their personal accounts.
In my understanding I require an application from youtube along the user's access key to upload anything. The problem is the application "general" quota is 10k units. Each video upload costs 1605 ( calculated ) units. Meaning that my application can upload up to 6 videos per day because it adds up on the general quota. Is there a way for those units to add up on the per-user quota basis?
If I request an increase to my quota ( lets say 1mil / approved ) that means I can upload ~623 videos.. What would happened if 100 users try to upload a video in their personal accounts ( using my application, thus my application key ) as this response is not reassuring but is also 2 years old.
The code is as straight forward as userSpecificConnection.uploadVideo(video)
which creates a userConnection to youtube using the user access token and the application key.
This question seems similar to my question but is 3y/o without a clear answer on the problem that I am currently facing
To clear out my questions :
- Is there a way to upload videos on the per-user quota?
- As the application is just an intermediate for the users to upload videos to their personal accounts I will not be monitoring how many videos each user uploads to their personal accounts ( as they are personal ) BUT if a user uploads 50 the rest of the users will not be able to upload anything?
- Is there a way to avoid this? ( blocking a user from uploading due to an other user reaching the limit ). The users are independent and should not limit each other.
I am not avoiding opening a request for increased quota. Just do not want to start a process that may not help me and will only consume someones time to review my application.
...ANSWER
Answered 2019-Sep-26 at 12:07Is there a way to upload videos on the per-user quota?
All quotas are against your main quota. So if one user goes crazy and eats all your quota your other users are going to be stuck. Thats how the quota system works unfortunately its project based and not user based.
As the application is just an intermediate for the users to upload videos to their personal accounts I will not be monitoring how many videos each user uploads to their personal accounts ( as they are personal ) BUT if a user uploads 50 the rest of the users will not be able to upload anything?
You will get an error back stating that they have reached their quota limit for the day. You should just display that to them and let them know the quota will reset at midnight west cost USA time.
Is there a way to avoid this? ( blocking a user from uploading due to an other user reaching the limit ). The users are independent and should not limit each other.
Unless you keep track in your application how many uploads the user has made there is no way for you to know they have reached the limit without just trying to do an upload and getting the quota error. Dont worry to much about getting the quota error google doesn't count that errors like that against you just format it nicely for the user.
I am not avoiding opening a request for increased quota. Just do not want to start a process that may not help me and will only consume someones time to review my application.
My rule of thumb is when i have reached 80% usage daily for a quota i normally apply for extension. The youtube api quota can take time to get extended i have heard as long as six weeks.
QUESTION
I am developing App where my clients will be able to upload videos from their Android phones.All videos will be uploaded in the same declared account in code.I have been searching for hours on how i can upload video to youtube without prompting user login,I am currently using Youtube direct lite which i think is the best option for this task. Is there any source i can refer for API V3 which has used static username and password for authentication?
I have update the code from the link above to make it work with latest android versions,see here
...ANSWER
Answered 2018-Mar-31 at 09:08I have decided to answer my own question after many hours searching for a solution ,Actually there is no proper way of uploading a video to Youtube using API V3 without prompting user's login,This was possible using API V2 which is no longer supported,For that case you wont be able to declare your static username and password.It is advised to use server-side language like PHP to do this for you.You can please refer on this question on how to do that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install youtube-video-upload
Create an account on the Google Developers Console
Register a new app there
Enable the Youtube API (APIs & Auth -> APIs)
Create Client ID (APIs & Auth -> Credentials), select 'Other'
Download the secrets file clicking on the download icon
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page