Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteWebVtt ¶
WriteWebVtt takes a WebVtt object and the path to which to write the file as a string
Types ¶
type Position ¶
type Position struct { Vertical string Line int Posstring string Position int Linepercent bool Align string Size int }
Position is a struct that stores the positional data on a per-line level
type Style ¶
Style struct contains the style header information and a map of the contained values
func CreateStyle ¶
CreateStyle creates a style from a header string and an interface containing the variables
type Subtitle ¶
type Subtitle struct { Note bool Cue string Start string End string Haspos bool Position Position Line []string }
Subtitle is the struct that stores subtitles and notes for WebVtt. The Note bool determines whether the Subtitle is actually a note or not.
type WebVtt ¶
WebVtt is the container struct for a WebVtt subtitle
func ParseWebVtt ¶
ParseWebVtt takes a filename and returns a WebVtt structure and any errors
Click to show internal directories.
Click to hide internal directories.