youtube java client api set copyright on video upload

134 Views Asked by At

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!

0

There are 0 best solutions below