Description Usage Arguments See Also Examples
Read a srt file as a vector, if there is any encoding issue, try to save your srt fle as ANSI encoding using Windows Notepad.
1 |
file |
character. The name of the file which the subtitles are to be read from. |
encoding |
character. Encoding to be assumed for input strings, deafult is 'utf-8'. |
1 2 3 | # read a ANSI srt file
srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.