Utilities to control On-Screen Display (OSD).
Availability
Script Types |
---|
Extension, Interface |
OSD Elements
icon()
Display an icon on a given OSD channel.
Parameters
type
Icon type: one of"pause"
"play"
"speaker"
"mute"
- Optional
id
OSD channel ID; uses default channel if one is not provided
message()
Display the text message on a given OSD channel.
Parameters
msg
String containing the message to display- Optional
id
OSD channel ID; uses default channel if one is not providedposition
String indicating the position of message on the screen: one of"center"
"left"
"right"
"top"
"bottom"
"top-left"
"top-right"
(default)"bottom-left"
"bottom-right"
duration
Integer 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
position
Integer from 0 to 100type
Either"horizontal"
or"vertical"
to indicate slider orientaiton- Optional
id
OSD 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
id
OSD channel ID