webvtt

package
v0.0.0-...-cd115bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2018 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BytesBOM = []byte{239, 187, 191}

Functions

func ReadFromWebVTT

func ReadFromWebVTT(i io.Reader, c chan<- SubtitleBlock) (err error)

func Segment

func Segment(r io.Reader, targetDuration time.Duration, outputDir, name string) error

Segment Segments the webvtt input from `r`

Types

type SubtitleBlock

type SubtitleBlock struct {
	StartTime, EndTime time.Duration // The block times
	Lines              bytes.Buffer  // A buffer containing the whole block
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL