Skip to main content
Version: 20 Mar 2024

ParserCEA708

CEA708 Parser. More...

Detailed Description

public class ParserCEA708; 

Details*

Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file.


Public Methods

delegate void OnEmitEventDelegate

public delegate void OnEmitEventDelegate(
Cea708CaptionEmitCommand command,
object obj
)

Parameters

TypeNameDescription
Cea708CaptionEmitCommandcommandCEA708 Caption Emit Commands constants. MLCea708CaptionEmitCommand from ml_media_cea708_caption.h .
objectobj

delegate void OnTextDelegate

public delegate void OnTextDelegate(
string text
)

Parameters

TypeNameDescription
stringtext

void ParseAsync

public void ParseAsync(
IntPtr data,
uint dataSize
)

Parameters

TypeNameDescription
IntPtrdata
uintdataSize

ParserCEA708

public ParserCEA708()

Public Attributes

Mime


public const string Mime = "text/cea-708";


Public Events

OnEmitEvent

public OnEmitEventDelegate OnEmitEvent()

OnText

public OnTextDelegate OnText()

Public Enums

Cea708CaptionColorOpacity

CEA708 Caption Color Opacity constants. MLCea708CaptionColorOpacity from ml_media_cea708_caption.h .

EnumeratorValueDescription
Solid0Solid opacity.
Flash1Flashing opacity.
Translucent2Translucent opacity.
Transparent3Transparent opacity.

Cea708CaptionEmitCommand

CEA708 Caption Emit Commands constants. MLCea708CaptionEmitCommand from ml_media_cea708_caption.h .

EnumeratorValueDescription
Buffer1Buffer command.
Control2Control command.
CWX3SetCurrentWindow tells the caption decoder which window the following commands describe:
  • SetWindowAttributes
  • SetPenAttributes
  • SetPenColor
  • SetPenLocation. If the window specified has not already been created with a DefineWindow command then, SetCurrentWindow and the window property commands can be safely ignored. | | CLW | 4| ClearWindows clears all the windows specified in the 8 bit window bitmap. | | DSW | 5| DisplayWindows displays all the windows specified in the 8 bit window bitmap. | | HDW | 6| HideWindows hides all the windows specified in the 8 bit window bitmap. | | TGW | 7| ToggleWindows hides all displayed windows, and displays all hidden windows specified in the 8 bit window bitmap. | | DLW | 8| DeleteWindows deletes all the windows specified in the 8 bit window bitmap. If the current window, as specified by the last SetCurrentWindow command, is deleted then the current window becomes undefined and the window attribute commands should have no effect until after the next SetCurrentWindow or DefineWindow command. | | DLY | 9| Delay suspends all processing of the current service, except for DelayCancel and Reset scanning. | | DLC | 10| DelayCancel terminates any active delay and resumes normal command processing. DelayCancel should be scanned for during a Delay. | | RST | 11| Reset deletes all windows, cancels any active delay, and clears the buffer before the Reset command. Reset should be scanned for during a Delay. | | SPA | 12| The SetPenAttributes command specifies how certain attributes of subsequent characters are to be rendered in the current window, until the next SetPenAttributes command. | | SPC | 13| SetPenColor sets the foreground, background, and edge color for the subsequent characters. | | SPL | 14| SetPenLocation sets the location of for the next bit of appended text in the current window. It has two parameters, row and column. | | SWA | 15| SetWindowAttributes Sets the window attributes of the current window. | | DFX | 16| DefineWindow0-7 creates one of the eight windows used by a caption decoder. |

Cea708CaptionEmitCommandControl

CEA708 Caption Emit Command Control constants. MLCea708CaptionEmitCommandControl from ml_media_cea708_caption.h .

EnumeratorValueDescription
ETX0x03End of text.
BS0x08Back space.
FF0x0cThis code is equivalent to CEA708 CLW command
HCR0x0eCarriage return.

Cea708CaptionPenOffset

CEA708 Caption Pen Offset constants. MLCea708CaptionPenOffset from ml_media_cea708_caption.h .

EnumeratorValueDescription
Subscript0Subscript offset.
Normal1Normal offset.
Superscript2Superscript offset.

Cea708CaptionPenSize

CEA708 Caption Pen Size constants. MLCea708CaptionPenSize from ml_media_cea708_caption.h .

EnumeratorValueDescription
Small0Small pen size.
Standard1Standard pen size.
Large2Large pen size.