upload_caption: Upload Video Caption to Youtube

View source: R/upload_caption.R

upload_captionR Documentation

Upload Video Caption to Youtube

Description

Upload Video Caption to Youtube

Usage

upload_caption(
  file,
  video_id,
  language = "en-US",
  caption_name,
  is_draft = FALSE,
  query = NULL,
  open_url = FALSE,
  ...
)

Arguments

file

Filename of the caption, probably '.srt'

video_id

YouTube Video ID. Try list_my_videos for examples.

language

character string of 'BCP47' language type. See http://www.rfc-editor.org/rfc/bcp/bcp47.txt for language specification

caption_name

character vector of the name for the caption.

is_draft

logical indicating whether the caption track is a draft.

query

Fields for 'query' in 'POST'

open_url

Should the video be opened using browseURL

...

Additional arguments to send to POST

Value

A list of the response object from the POST, content, and the URL of the video

Note

See https://developers.google.com/youtube/v3/docs/captions#resource for full specification

Examples

## Not run: 
xx = list_my_videos()
video_id = xx$contentDetails.videoId[1]
video_id = as.character(video_id)
language = "en-US"

## End(Not run)

soodoku/tuber documentation built on April 15, 2024, 10:19 p.m.