At this time I'm able to upload Videos to my own YouTube channel on the back-end using API V3 with OAuth 2.0 seamlessly, the need I have is to notify users when they upload the same video twice. As far as I can see YouTube API V3 does not detects this issue until upload has finished. So this means that even if a video is a duplicated one, the upload will always succeed and then the YouTube interface will show the message: "ID Duplicated Video" to the right side of video list on my channel.
How can I read this info (ID Duplicated Video) through the API in PHP so that I can be able to notify user about this duplicated upload?
There is no interface to check if a user is uploading a duplicate video before uploading the entire file. Presumably, YouTube performs some kind of hash on the file after the upload has completed in order to check if it is a duplicate upload. Because the video file needs to be uploaded in its entirety for this check to happen, there is no way to check for a duplicate upload (currently) before an upload has completed.
Related
I'm using Youtube API v3 to upload video. At the first time I use, it requires authorization then do upload but there are two videos is created. They are exactly the same but there is no error, the API returns the latest id. I checked in my channel, two videos could be view.
When I try to upload the previous video, another id returns, too, but if I use this, Youtube will show me "This video is a duplicate of another video". Other times, the API works right. Did anyone encounter this problem?
Uploading the video more than once over YouTube (via api) doesn't provide any exception. Instead it returns the success in response.
YouTube response after uploading same video is given in this link:
https://bpaste.net/raw/5504d0129088
Videos: insert Uploads a video to YouTube and optionally sets
the video's metadata.
All it does is insert a video. It does not check that a video with that name or metadata or file doesn't already exist. That is the developers job. You can keep uploading the same video as many times as you like it will get a different id and YouTube will treat it as a different video.
In this instance you would only see an exception if the file did not upload correctly. The fact that you are not seeing an exception is as it should be.
I have created a script using YouTube API v3 to make submitted videos from users sent directly to YouTube channel. The issue I am facing is that YouTube refuses to accept videos larger than 100mb. Is this a limitation YouTube has set or am I doing something wrong? I test the script by submitting a video of 394mb and in the end of the upload it presents the error message, though this doesn't happen when uploading videos of less than 100mb. Is there any way to manage to let upload larger videos.
I thought not to attach any script sample as first need to know the answer to this question. Thanks in advance for all answers. Suggestions are welcomed.
You can upload videos in excess of 15 minutes long. All you need to do is verify your YouTube account using the following link. Make sure you are logged into your YouTube account:
https://www.youtube.com/verify
Make sure you’re using an up-to-date version of your browser so you can upload files greater than 20GB. The maximum file size you'll be able to upload to YouTube is 128GB and the maximum duration is 11 hours.
I have requirement where I need to provide ui to my website users to upload video's on one common channel , Can anyone know, how can I implement it ?
I googled on it but get no result
I know all about You tube Data Api v3 and implemented it, but don't know how to implement it for my website such that all users can add their videos on my own channel.
I get blocked at authentication page because after login each user can add video on their own channel
What you want to do is only possible with YouTube Direct Lite. Basically user's will upload to their own channel but videos will be submitted to your playlist.
I'm putting together an application in facebook, part of which requires a user to input a bunch of information into a form, including a video and a number of text fields.
For my application, I'm using a combination of HTML, PHP, mySQL and Javascript.
I want to be able to upload the users video file to facebook using the PHP SDK in the same page as I am inserting their info into my database. I want something similiar to the photo solution here: Exception when uploading photo with Facebook Graph API. But I'm not sure what the array key should be for the video itself.
Can any give me any ideas?
My apologies,
I realized that the solution I linked to works. However, you have to give facebook time to process the video, otherwise the graph api replies false.