use of org.datatransferproject.datatransfer.google.mediaModels.Video in project data-transfer-project by google.
the class GoogleVideosExporterTest method setUpSingleVideo.
/**
* Sets up a response for a single video
*/
private GoogleMediaItem setUpSingleVideo(String videoUri, String videoId) {
GoogleMediaItem videoEntry = new GoogleMediaItem();
videoEntry.setDescription("Description");
videoEntry.setMimeType("video/mp4");
videoEntry.setBaseUrl(videoUri);
videoEntry.setId(videoId);
MediaMetadata mediaMetadata = new MediaMetadata();
mediaMetadata.setVideo(new Video());
videoEntry.setMediaMetadata(mediaMetadata);
return videoEntry;
}
Aggregations