beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 117

background image

109

a video may contain English and Spanish audio tracks, you can call

SetPreferredAudio() to specify that the Spanish

track should be played if it exists, with the video defaulting to English otherwise.

Preferred streams are chosen by matching the patterns in the passed string(s) against the textual description of the
stream:

1. The passed string is a semicolon-separated list of templates.
2. Each template is a comma-separated list of patterns.
3. Each pattern is a

[field_name]=[field_value] pair that is matched directly against the stream description.

SetPreferredVideo(description As String) As Boolean
Each template in the passed video

description string can contain the following patterns:

pid=[integer]: The packet identifier (PID) of the video stream you wish to display

codec=[video_codec]: The preferred video codec, which can be any of the following:

o MPEG1
o MPEG2
o MPEG4Part2
o H263
o H264
o VC1
o H265

width=[integer]: The preferred video width

height=[integer]: The preferred video height

aspect=[float(x.yy)]: The preferred aspect ratio of the video stream as a floating-point number with two
fractional digits.

colordepth=[integer]: The preferred color depth of the video.