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.