RDK Documentation (Open Sourced RDK Components)
webvttParser.cpp File Reference

Parser impl for WebVTT subtitle fragments. More...

#include <string.h>
#include <assert.h>
#include <cctype>
#include <algorithm>
#include "webvttParser.h"
Include dependency graph for webvttParser.cpp:

Go to the source code of this file.

Macros

#define CHAR_CARRIAGE_RETURN   '\r'
 
#define CHAR_LINE_FEED   '\n'
 
#define CHAR_SPACE   ' '
 
#define VTT_QUEUE_TIMER_INTERVAL   250
 

Functions

static char * parsePercentageValueSetting (char *settingValue)
 
static char * findWebVTTLineBreak (char *buffer)
 
static long long convertHHMMSSToTime (char *str)
 
static gboolean SendVttCueToExt (gpointer user_data)
 

Variables

std::vector< std::string > allowedCueLineAligns = { "start", "center", "end" }
 Variable initialization for supported cue line alignment values.
 
std::vector< std::string > allowedCuePosAligns = { "line-left", "center", "line-right" }
 Variable initialization for supported cue position alignment values.
 
std::vector< std::string > allowedCueTextAligns = { "start", "center", "end", "left", "right" }
 Variable initialization for supported cue text alignment values.
 

yes

Parser impl for WebVTT subtitle fragments.

Definition in file webvttParser.cpp.