Search in sources :

Example 1 with Video

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;
}
Also used : Video(org.datatransferproject.datatransfer.google.mediaModels.Video) MediaMetadata(org.datatransferproject.datatransfer.google.mediaModels.MediaMetadata) GoogleMediaItem(org.datatransferproject.datatransfer.google.mediaModels.GoogleMediaItem)

Aggregations

GoogleMediaItem (org.datatransferproject.datatransfer.google.mediaModels.GoogleMediaItem)1 MediaMetadata (org.datatransferproject.datatransfer.google.mediaModels.MediaMetadata)1 Video (org.datatransferproject.datatransfer.google.mediaModels.Video)1