kodi
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CWebVTTHandler Class Reference
Inheritance diagram for CWebVTTHandler:
Inheritance graph
[legend]
Collaboration diagram for CWebVTTHandler:
Collaboration graph
[legend]

Public Member Functions

bool Initialize ()
 Prepare the handler to the decoding.
 
void Reset ()
 
bool CheckSignature (const std::string &data)
 Verify the validity of the WebVTT signature.
 
void DecodeLine (std::string line, std::vector< subtitleData > *subList)
 Decode a line of the WebVTT text data. More...
 
bool IsForcedMargins () const
 
void SetPeriodStart (double pts)
 

Protected Member Functions

void CalculateTextPosition (std::string &subtitleText)
 
void ConvertSubtitle (std::string &text)
 
void GetCueSettings (std::string &cueSettings)
 

Protected Attributes

subtitleData m_subtitleData
 

Member Function Documentation

◆ DecodeLine()

void CWebVTTHandler::DecodeLine ( std::string  line,
std::vector< subtitleData > *  subList 
)

Decode a line of the WebVTT text data.

Parameters
lineThe line to decode
subListThe list to be filled with decoded subtitles

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