How to disable comments when uploading a video with Youtube API, in java ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After a quick Google, I found this.
What you want to do is add an yt:accessControl element to the video entry, with an action attribute of “comment” and a permission attribute of “moderated”. I don’t believe that there is native support or the yt:accessControl element in the Java client library yet, so this would have to be done “by hand”. Here’s some example code that
assumes you’ve just created a new video, and then performs a partial update to set the yt:accessControl value for that video: