srt_seconds | R Documentation |
Parse components of a subtitle file
srt_seconds(x)
srt_index(x)
srt_text(x, collapse = "\n")
x |
A character vector with the lines of an |
collapse |
The character with which to separate subtitle lines. |
The parsed individual components of a subtitle: integer indexes, numeric times, and collapsed string subtitles.
# return individual components of each subtitle
x <- readLines(srt_example())
head(srt_seconds(x)[[1]])
head(srt_index(x))
head(srt_text(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.