Description Usage Arguments Value Note Examples
View source: R/upload_caption.R
Upload Video Caption to Youtube
1 2 3 4 5 6 7 8 9 10 |
file |
Filename of the caption, probably '.srt' |
video_id |
YouTube Video ID. Try |
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 |
... |
Additional arguments to send to |
A list of the response object from the POST
, content,
and the URL of the video
See https://developers.google.com/youtube/v3/docs/captions#resource for full specification
1 2 3 4 5 6 7 | ## Not run:
xx = list_my_videos()
video_id = xx$contentDetails.videoId[1]
video_id = as.character(video_id)
language = "en-US"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.