stbDisplay

stbDisplay

Tutorials:
See:

stbDisplay instance.

Not accessible in global scope.
Can't be manually created but can be received from other STB global objects.

Members

(static, readonly) type :number

Get display type.

Supported types:

Value Description
1 HDMI display
Type:
  • number

(static, readonly) height :number

Get display geometry height attribute.

Type:
  • number

(static, readonly) width :number

Get display geometry width attribute.

Type:
  • number

(static, readonly) state :stbDisplay~HDMIConnectionStateConfig

Get HDMI connection state.

Type:

(static) cec :boolean

CEC enable/disable flag.

Type:
  • boolean

(static) forceToDVI :boolean

Default Value:
  • false

Force output to DVI mode.

Works only for HDMI displays.

Possible values:

Value Description
false auto detect HDMI mode
true force HDMI to DVI mode
Type:
  • boolean

Methods

(static) onStateChange(state)

See:

HDMI device has been connected/disconnected.

Parameters:
Name Type Description
state stbDisplay~HDMIConnectionStateConfig

current HDMI state

Type Definitions

HDMIConnectionStateConfig

See:

HDMI connection state.

Possible values:

Value Description
0 HDMI disconnected from TV.
1 HDMI connected to TV, but not in active state e.i. standby mode, TV is off
2 HDMI connected to TV in active state.
Type:
  • number