1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
//add a video
boolean upgradeTo1080 = true;
String videoEndPoint = vimeo.addVideo(new File("/Users/tmendici/Downloads/Video.AVI"), upgradeTo1080);
//get video info
VimeoResponse info = vimeo.getVideoInfo(videoEndPoint);
System.out.println(info);
//edit video
String name = "Name";
String desc = "Description";
String license = ""; //see Vimeo API Documentation
String privacyView = "disable"; //see Vimeo API Documentation
String privacyEmbed = "whitelist"; //see Vimeo API Documentation
boolean reviewLink = false;
vimeo.updateVideoMetadata(videoEndPoint, name, desc, license, privacyView, privacyEmbed, reviewLink);
//add video privacy domain
vimeo.addVideoPrivacyDomain(videoEndPoint, "clickntap.com"); |
Partager