Home Reference Source
import {CaptionScreen} from 'hls.js/src/utils/cea-608-parser.ts'
public class | source

CaptionScreen

Keep a CEA-608 screen of 32x15 styled characters

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

currRow: *

public
public

logger: *

public
public

rows: *[]

Method Summary

Public Methods
public
public
public
public
public

getDisplayText(asOneRow: boolean): *

Get all non-empty rows with as unicode text.

public
public

Insert a character (without styling) in the current row.

public
public

moveCursor(relPos: number)

public

reset()

public

rollUp()

public

setBkgData(bkgData: Partial)

Set background/extra foreground, but first do back_space, and then insert space (backwards compatibility).

public

setCursor(absPos: number)

public

setPAC(pacData: PACData)

public

setPen(styles: Partial)

public

Public Constructors

public constructor() source

Public Members

public currRow: * source

public lastOutputScreen: * source

public logger: * source

public nrRollUpRows: * source

public rows: *[] source

Public Methods

public backSpace() source

public clearToEndOfRow() source

public copy(other: CaptionScreen) source

Params:

NameTypeAttributeDescription
other CaptionScreen

public equals(other: CaptionScreen): boolean source

Params:

NameTypeAttributeDescription
other CaptionScreen

Return:

boolean

public getDisplayText(asOneRow: boolean): * source

Get all non-empty rows with as unicode text.

Params:

NameTypeAttributeDescription
asOneRow boolean

Return:

*

public getTextAndFormat(): * source

Return:

*

public insertChar(char: number) source

Insert a character (without styling) in the current row.

Params:

NameTypeAttributeDescription
char number

public isEmpty(): boolean source

Return:

boolean

public moveCursor(relPos: number) source

Params:

NameTypeAttributeDescription
relPos number

public reset() source

public rollUp() source

public setBkgData(bkgData: Partial) source

Set background/extra foreground, but first do back_space, and then insert space (backwards compatibility).

Params:

NameTypeAttributeDescription
bkgData Partial

public setCursor(absPos: number) source

Params:

NameTypeAttributeDescription
absPos number

public setPAC(pacData: PACData) source

Params:

NameTypeAttributeDescription
pacData PACData

public setPen(styles: Partial) source

Params:

NameTypeAttributeDescription
styles Partial

public setRollUpRows(nrRows: undefined) source

Params:

NameTypeAttributeDescription
nrRows undefined