Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Google Authentication for youtube live

$
0
0

I am developing a code for live streaming video to YouTube. I used this sample application YouTube WatchMe

Everything works fine for individual users, but I want users to live stream to our channel (its a YouTube Brand Account). For testing purpose I added one user as Manager to the channel and tried to login using that user id. Instead of creating streaming target in user managed channel, it creates target in user's own channel. I did not get option to select the channel.

I would like to know how to make the users select the channel to stream.

I feel something has to be done here

 credential = GoogleAccountCredential.usingOAuth2(            getApplicationContext(), Arrays.asList(Utils.SCOPES));

And here

 case REQUEST_ACCOUNT_PICKER:            if (resultCode == Activity.RESULT_OK && data != null&& data.getExtras() != null) {                String accountName = data.getExtras().getString(                        AccountManager.KEY_ACCOUNT_NAME);                if (accountName != null) {                    mChosenAccountName = accountName;                    credential.setSelectedAccountName(accountName);                    saveAccount();                }            }            break;

If anyone can give some guidance, it will be helpful.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>