Constructor
new Cea608Memory(fieldNum, channelNum)
Parameters:
Name |
Type |
Description |
fieldNum |
number
|
Field number. |
channelNum |
number
|
Channel number. |
- Source:
Members
CC_ROWS :number
Maximum number of rows in the buffer.
Type:
- Source:
CharSet :number
Characters sets.
Type:
- Source:
ROW_TO_LINE_CONVERSION_ :Map.<number, number>
@const
Type:
- Source:
backgroundColor_ :string
Type:
- Source:
channelNum_ :number
Channel number.
Type:
- Source:
fieldNum_ :number
Field number.
Type:
- Source:
italics_ :boolean
Type:
- Source:
row_ :number
Current row.
Type:
- Source:
Buffer for storing decoded characters.
Type:
- Source:
Number of rows in the scroll window. Used for rollup mode.
Type:
- Source:
textColor_ :string
Type:
- Source:
underline_ :boolean
Type:
- Source:
Methods
addChar(setnon-null, b)
Adds a character to the buffer.
Parameters:
- Source:
eraseBuffer()
Erases entire memory buffer.
Doesn't change scroll state or number of rows.
- Source:
eraseChar()
Erases a character from the buffer.
- Source:
Emits a closed caption based on the state of the buffer.
Parameters:
Name |
Type |
Description |
startTime |
number
|
Start time of the cue. |
endTime |
number
|
End time of the cue. |
- Source:
Returns:
-
Type
-
shaka.extern.ICaptionDecoder.ClosedCaption
getRow() → {number}
- Source:
Returns:
-
Type
-
number
- Source:
Returns:
-
Type
-
number
moveRows(dst, src, count)
Moves rows of characters.
Parameters:
Name |
Type |
Description |
dst |
number
|
Destination row index. |
src |
number
|
Source row index. |
count |
number
|
Count of rows to move. |
- Source:
reset()
Resets the memory buffer.
- Source:
resetAllRows()
Resets the entire memory buffer.
- Source:
resetRows(idx, count)
Resets rows of characters.
Parameters:
Name |
Type |
Description |
idx |
number
|
Starting index. |
count |
number
|
Count of rows to reset. |
- Source:
setBackgroundColor(color)
Parameters:
Name |
Type |
Description |
color |
string
|
|
- Source:
setItalics(italics)
Parameters:
Name |
Type |
Description |
italics |
boolean
|
|
- Source:
setRow(row)
Parameters:
Name |
Type |
Description |
row |
number
|
|
- Source:
Parameters:
Name |
Type |
Description |
scrollRows |
number
|
|
- Source:
setTextColor(color)
Parameters:
Name |
Type |
Description |
color |
string
|
|
- Source:
setUnderline(underline)
Parameters:
Name |
Type |
Description |
underline |
boolean
|
|
- Source: