Description Usage Arguments Value References Examples
List Captions of a Video
1 2 3 4 5 6 7 8 | list_caption_tracks(
part = "snippet",
video_id = NULL,
lang = "en",
id = NULL,
simplify = TRUE,
...
)
|
part |
Caption resource requested. Required. Comma separated list of one or more of the
following: |
video_id |
ID of the video whose captions are requested. Required. No default. |
lang |
Language of the caption; required; default is English ("en") |
id |
comma-separated list of IDs that identify the caption resources that should be retrieved; optional; string |
simplify |
Boolean. Default is TRUE. When TRUE, and part is |
... |
Additional arguments passed to |
list of caption tracks. When simplify
is TRUE
, a data.frame
is returned with
following columns: videoId, lastUpdated, trackKind, language, name, audioTrackType, isCC,
isLarge, isEasyReader, isDraft, isAutoSynced, status, id
(caption id)
https://developers.google.com/youtube/v3/docs/captions/list
1 2 3 4 5 6 7 | ## Not run:
# Set API token via yt_oauth() first
list_caption_tracks(video_id = "yJXTXN4xrI8")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.