top

DISPLAYCONTROL

This API provides stereoscopy (also called 3D) effects on the device associated with the TV.
A webapis.displaycontrol object provides access to the functionality of the displaycontrol API.

Add the following line for displaycontrol class into a html file your own :

  script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/webapis.js">/script>

You can declare displaycontrol class like this :

  ex) var displaycontrol = webapis.displaycontrol;


Constants

NameValueDescription
MODE_3D_EFFECT_OFF0identifier for 3DEffect mode off
MODE_3D_EFFECT_TOP_BOTTOM1identifier for 3DEffect mode top_bottom
MODE_3D_EFFECT_SIDE_BY_SIDE2identifier for 3DEffect mode top_bottom
MODE_3D_EFFECT_LINE_BY_LINE3identifier for 3DEffect mode line_by_line
MODE_3D_EFFECT_VERTICAL_STRIPE4identifier for 3DEffect mode vertical_stripe
MODE_3D_EFFECT_FRAME_SEQUENCE5identifier for 3DEffect mode frame_sequence
MODE_3D_EFFECT_CHECKER_BD6identifier for 3DEffect mode frame_sequence
MODE_3D_EFFECT_FROM_2D_TO_3D7identifier for 3DEffect mode convert 2D to 3D
MODE_3D_DEVICE_NOT_CONNECTED-1Supports 3D Mode, but 3D Display is not connected.
MODE_3D_NOT_SUPPORTED0No support for 3D Mode
MODE_3D_ENABLE_OK1identifier for enabling 3D Mode

Methods

check3DModeEnable

Description
This function checks 3D mode is enabled or not.
Parameters
none
Return■Number
  - 3D Effect Mode index
Emulator SupportYes
SDK ConstraintNone
Example
var retValue = webapis.displaycontrol.check3DModeEnable();

get3DEffectMode

Description
Gets the current 3DEffectMode of the DTV.
Parameters
none
Return■Unsigned short
  - A constant number from the following list:
   * MODE_3D_EFFECT_OFF
   * MODE_3D_EFFECT_TOP_BOTTOM
   * MODE_3D_EFFECT_SIDE_BY_SIDE
   * MODE_3D_EFFECT_LINE_BY_LINE
   * MODE_3D_EFFECT_VERTICAL_STRIPE
   * MODE_3D_EFFECT_FRAME_SEQUENCE
   * MODE_3D_EFFECT_CHECKER_BD
   * MODE_3D_EFFECT_FROM_2D_TO_3D
   * MODE_3D_EFFECT_FROM_3D_TO_2D
Emulator SupportY
SDK ConstraintNone
Example
var current3DMode = deviceapis.audiocontorldisplaycontorl.get3DEffectMode();

get3DModeSupportList

Description
Gets the supported 3D Effects
Parameters
■successCallback
  - Function
  - success callback for retrieving a list of 3D modes
■errorCallback
  - Function
  - Function called when an error occurs
Return■Void
Emulator SupportY
SDK ConstraintNone
Example
webapis.displaycontrol.get3DModeSupportList(successCB, errorCB);