Description Usage Arguments Value Examples
Get caption details for a video
https://developers.google.com/youtube/v3/docs/captions/list
1 | getCaptionData(token, contentOwner, captionInfo, format = "vtt")
|
token |
Access token |
contentOwner |
Content owner |
captionInfo |
Caption info from prior call to getVideoCaptionsList |
format |
format |
Returns a data.frame
of results
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.