com.google.api.services.youtube.model.Video

Here are the examples of the java api class com.google.api.services.youtube.model.Video taken from open source projects.

1. MainActivity#directTag()

View license
private void directTag(final VideoData video) {
    final Video updateVideo = new Video();
    VideoSnippet snippet = video.addTags(Arrays.asList(Constants.DEFAULT_KEYWORD, Upload.generateKeywordFromPlaylistId(Constants.UPLOAD_PLAYLIST)));
    updateVideo.setSnippet(snippet);
    updateVideo.setId(video.getYouTubeId());
    new AsyncTask<Void, Void, Void>() {

        @Override
        protected Void doInBackground(Void... voids) {
            YouTube youtube = new YouTube.Builder(transport, jsonFactory, credential).setApplicationName(Constants.APP_NAME).build();
            try {
                youtube.videos().update("snippet", updateVideo).execute();
            } catch (UserRecoverableAuthIOException e) {
                startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);
            } catch (IOException e) {
                Log.e(TAG, e.getMessage());
            }
            return null;
        }
    }.execute((Void) null);
    Toast.makeText(this, R.string.video_submitted_to_ytdl, Toast.LENGTH_LONG).show();
}