Accessibility of YouTube live-streaming API - youtube-api

I am working on an Android project that needs to stream live video feed to YouTube. From the official YouTube data API 2.0:
Prerequisites
Please note the following prerequisites for using the API functionality described
in this section:
1. Developers need to sign an API Testing Agreement before their applications can
successfully issue requests to manage live events. Please contact the YouTube
developer relations team via a post to the YouTube APIs Developer Forum if you
are interested in incorporating this functionality into your application.
2. The ability to create, update, and delete live events is only available to some
YouTube users. The Determining whether a user can create live events section
explains how to check a user's profile entry to see whether a user has access
to these features.
The Developer Forum mentioned above is closed already and stackflow is recommended instead, so I post my question here:
Where do I apply for the licence so that my Android application can successfully manage the live streaming?
How could I get an YouTube account that is live-streaming capable so I can test my application with?

Update: Livestreaming and API is available to all verified channels.
Livestreaming capabilities and API are only for selected partners for now. You can get more information on "http://www.youtube.com/yt/partners/"

Related

YouTube Data API: Choosing the destination YT channel when uploading my video

I've followed the steps explained here: https://developers.google.com/youtube/v3/guides/uploading_a_video in order to use their script to upload a video on my channel.
The problem is that my GMail account is associated to two YouTube channels: my personal one which is its default YT channel, and a new one that I've created this morning. The latter is the good destination channel for my videos.
How can I tell the YouTube Data API to upload the video to this channel and not the default one? I didn't see anything useful in the Console API "YouTube Data API", nore in the technical documentation of the upload script (given above).
As part of the OAuth 2.0 authentication/authorization flow, you will be presented, within the browser, with the option of selecting to which account your app is to be given access rights.
You may well exercise this behavior, prior to making use of your script, with the help of Google Developers OAuth 2.0 Playground.
Upon a successful OAuth flow, you may verify (and also revoke) the permissions granted by your account on the account's permissions page.

Youtube auto subcribe is possible with api v3?

I want to know how can I do auto subcribe an account with youtube api v3. Can I it to register with youtube account. For example, some script do auto post share on your twitter account.
I do not personally use YouTube API, but after looking over the YouTube Data API's documenation pages, it seems that the API supports a method to subscribe users to a channel.
The API Overview documentation page states:
A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
You may view all the methods supported by the subscription resource on the subscription resource's documentation page. The method that you would need is called insert. This allows you to automatically subscribe an authenticated user to a specified channel. The insert method's description can be found on its page along with detailed usage examples. The page provides examples in Apps Script, Java, PHP, Python, and Ruby; however this method can be used any programming language which supports the YouTube Data API Client Libraries.

Is it possible to host videos uploaded to my website on youtube?

I have Java based website. I would like users to log into my website and then upload videos to youtube using my youtube account. Users should not be required to have their own youtube account since videos will be uploaded using my youtube account.
Does youtube support this scenario?
If so, is there a sample code that shows me how to do this in Java?
I have used UploadVideo.java sample provided by google (https://developers.google.com/youtube/v3/code_samples/java#upload_a_video), but it requires users to log into youtube account using their id and password. That is not my use case.
Please study the terms and conditions of the Youtube service ; I think they do not allow this:
https://www.youtube.com/static?gl=GB&template=terms
YouTube accounts
4.1 In order to access some features of the Website or other elements of the Service, you will have to create a YouTube account. When
creating your account, you must provide accurate and complete
information. It is important that you must keep your YouTube account
password secure and confidential.
4.2 You must notify YouTube immediately of any breach of security or unauthorised use of your YouTube account that you become aware of.
4.3 You agree that you will be solely responsible (to YouTube, and to others) for all activity that occurs under your YouTube account.
and
5.1.L: you agree not to access Content or any reason other than your personal, non-commercial use solely as intended through and permitted
by the normal functionality of the Service, and solely for Streaming.
"Streaming" means a contemporaneous digital transmission of the
material by YouTube via the Internet to a user operated Internet
enabled device in such a manner that the data is intended for
real-time viewing and not intended to be downloaded (either
permanently or temporarily), copied, stored, or redistributed by the
user.
You can not let other people use your YouTube account/channel. The way to do is using YouTube Direct Lite
You basically add a ytdl with playlist tag while uploading videos.
You can check Android Client for how to do it in Java.
As to whether it is technically possible, yes, see https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol
The technical problem here is users will be able to delete videos too if they have your access token with full permissions. basically you need to:
load your html page with the upload interface.
add to the onclick event of the upload button to send an ajax request to a script on your server which will:
return the access token of your account to the client
soon thereafter change the access token using the refresh token
Its still technically vulnerable though. a possible solution is to obtain the access token ONLY with the scope:
https://www.googleapis.com/auth/youtube.upload
There is a very good chance it will not be vulnerable then. You should test it.

YouTube API v3, iOS App authentication for company YouTube account

What I want to do in a nutshell:
In our app I want to be able to upload videos to our company YouTube account. Our app has 'host' users and 'guest' users. The host can upload videos for a guest. The video will be unlisted so they're not available publicly and the guest will get a message in the app telling them that a new video is available. We'll then play the video in the app using the YouTube link.
I've downloaded the google-api-objectivec-client source and integrated it in the project. I've studied the YouTube example application that comes along with it. In this example application the user logs into her own account using OAuth 2.0 which is not our use case. The app should have authorization to upload videos to our company account without bothering the user.
I've read a lot of documentation and searched the web to see if someone else has solved this but I was not able to find the right solution.
My Question:
How should our app get authorization to upload videos? Using API keys, using Google+, using a service account? If someone can point me in the right direction, I would really appreciate it!
Unfortunately this is not possible at the moment.

Youtube api player for android copyright issue

The new android youtube api allows developer to embed and play videos in the third party app. I made android app that shows list of youtube videos and show video in the app (not using youtube official app).
I want to know if there will be any copyright issues for the same.
Do I need any permissions or something?
Posting this question here because youtube has mentioned to use stack-overflow with tag "youtube-api" as the official support group. See this link
https://youtube-eng.googleblog.com/2012/09/the-youtube-api-on-stack-overflow_14.html
If you are using the official API to show videos, either on Android or for a Web App, then this should not be a concern as the API will only give you videos that haven't been restricted by the content owners (or if there is a concern over content, the videos will be removed, and hence your apps will no longer be displaying them).
When it comes to uploading, if you utilize oAuth authentication with v3 of the API then users who upload videos will be responsible for whatever is uploaded to their YouTube account through your app. That is, you won't have to worry about doing copyright checks yourself, as that will happen once the video ends up on the YouTube servers (this is the best reason to utilize this authentication method; if an app instead were to forego oAuth authentication and have uploads go into the app owner's account, then the app owner could be liable for copyright infringing videos sent through the app).
Note that this isn't legal advice or an official YouTube perspective; just my interpretation of reading the terms of service (which you should read as well).

Resources