beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 119

background image

111

o Clean effects
o Hearing impaired
o Visual impaired commentary

Example:

“pid=4192, codec=AC3, channels=5, freq=48000, lang=eng, type=Main audio;;"

SetPreferredCaptions(description As String) As Boolean
Each template in the passed

description string can contain the following patterns:

pid=[integer]: The packer identifier (PID) of the caption stream you wish to play

type=[subtitle_type]: The encoding standard of the subtitles. This value can be one of the following:

o CEA708: If the CEA-708 standard is not present, the subtitle_type will default to CEA-608 (if it is

present).

o CEA608
o DVB

lang=[language]: A code that determines the preferred language of the subtitles (e.g. eng, spa). The language
codes are specified in the ISO 639-2 standard.

service=[integer]: The preferred service number of the caption stream

Example:

"pid=0, type=Cea708, lang=eng service=1;;"

Note the following rules when matching templates to video, audio, or caption stream descriptions:

For a template to match a stream description, every pattern within the template must match.

The first listed template to match the stream description (if any) will be used.

An empty template string will match any stream description.