API Documentation
Loading...
Searching...
No Matches
SubtitleFileWriter Class Reference

Class which can be used to write a subtitle in real time to a file, which can be played back alongside a video being recorded concurrently. More...

#include <SubtitleFile.h>

Collaboration diagram for SubtitleFileWriter:
[legend]

Public Member Functions

void addSubtitle (const String &text)
 
void finish (File file)
 
void setCurrentTime (TimeSpan span)
 
 SubtitleFileWriter (const File &file)
 
void writeText ()
 

Protected Attributes

TimeSpan m_current_time
 
File m_file
 
TimeSpan m_last_subtitle_start
 
String m_last_text
 
uint04 m_text_index = 0
 

Detailed Description

Class which can be used to write a subtitle in real time to a file, which can be played back alongside a video being recorded concurrently.


Constructor & Destructor Documentation

◆ SubtitleFileWriter()

SubtitleFileWriter ( const File & file)

Member Function Documentation

◆ addSubtitle()

void addSubtitle ( const String & text)

◆ finish()

void finish ( File file)

◆ setCurrentTime()

void setCurrentTime ( TimeSpan span)

◆ writeText()

void writeText ( )

Member Data Documentation

◆ m_current_time

TimeSpan m_current_time
protected

◆ m_file

File m_file
protected

◆ m_last_subtitle_start

TimeSpan m_last_subtitle_start
protected

◆ m_last_text

String m_last_text
protected

◆ m_text_index

uint04 m_text_index = 0
protected

The documentation for this class was generated from the following file: