Utilities to control On-Screen Display (OSD).
Availability
| Script Types |
|---|
| Extension, Interface |
OSD Elements
icon()
Display an icon on a given OSD channel.
Parameters
typeIcon type: one of"pause""play""speaker""mute"
- Optional
idOSD channel ID; uses default channel if one is not provided
message()
Display the text message on a given OSD channel.
Parameters
msgString containing the message to display- Optional
idOSD channel ID; uses default channel if one is not providedpositionString indicating the position of message on the screen: one of"center""left""right""top""bottom""top-left""top-right"(default)"bottom-left""bottom-right"
durationInteger indicating the amount of time, in microseconds, for which the message should be displayed (default is 1000000μs = 1 second)
slider()
Display slider on a given OSD channel.
Parameters
positionInteger from 0 to 100typeEither"horizontal"or"vertical"to indicate slider orientaiton- Optional
idOSD channel ID; uses default channel if one is not provided
OSD Channels
Elements are dsiplayed on individual OSD channels (a type of Subpicture channel), which can be created or cleared.
channel_register()
Register a new OSD channel.
Return value
Integer value of new channel ID
channel_clear()
Clear a given OSD channel.
Parameters
idOSD channel ID