Wednesday, 14 August 2013

youtube java client api set copyright on video upload

youtube java client api set copyright on video upload

I am uploading videos to YouTube using the YouTube java client api. The
most of it is working fine, but i've got still a problem with setting the
copyright information.
VideoEntry newEntry = new VideoEntry();
YouTubeMediaGroup mediaGroup = NewEntry.getOrCreateMediaGroup();
// adding different information to media group
MediaCopyright mediaCopyright = new MediaCopyright();
mediaCopyright.setContent("cc");
mediaCopyright.setUrl("http://creativecommons.org/licenses/by/3.0/");
mediaGroup.setCopyright(mediaCopyright);
// upload video
I need help with this -.- Any ideas how i can fix it? Thanks!

No comments:

Post a Comment