getCaptionData: Get caption details for a video

Description Usage Arguments Value Examples

View source: R/captions.R

Description

Get caption details for a video

https://developers.google.com/youtube/v3/docs/captions/list

Usage

1
getCaptionData(token, contentOwner, captionInfo, format = "vtt")

Arguments

token

Access token

contentOwner

Content owner

captionInfo

Caption info from prior call to getVideoCaptionsList

format

format

Value

Returns a data.frame of results

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
message("Retrieving caption info for each video ...")
captions <- videos %>% rowwise() %>% do(getVideoCaptionsList(token, .$video)) %>%
  filter(lang == "en", type %in% c("ASR", "standard"))

message("Retrieving captions for each video ...")
captions <- captions %>% rowwise() %>%
  do(getCaptionData(token = token, contentOwner = "ContentOwner", caption = .))

## End(Not run)

EricGoldsmith/rYouTube documentation built on Dec. 17, 2021, 7:21 p.m.