Class which can be used to read a subtitle file and return the subtitle that should be played at a specific time.
More...
Class which can be used to read a subtitle file and return the subtitle that should be played at a specific time.
Definition at line 55 of file SubtitleFile.h.
◆ SubtitleFileReader()
| SubtitleFileReader::SubtitleFileReader |
( |
const File & | file | ) |
|
Constructs a SubtitleFileReader that reads from the given file.
- Parameters
-
| [in] | file | The subtitle file to read. |
◆ convertFromString()
Converts a timestamp string from the subtitle file into a TimeSpan.
- Parameters
-
| [in] | string | The timestamp string to convert. |
- Returns
- The parsed TimeSpan value.
◆ currentText()
| String SubtitleFileReader::currentText |
( |
const TimeSpan & | current | ) |
const |
Returns the subtitle text that should be displayed at the given time.
- Parameters
-
| [in] | current | The current playback time. |
- Returns
- The subtitle text for the given time, or an empty string if none.
The documentation for this class was generated from the following file: