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
Name | Value | Description |
MODE_3D_EFFECT_OFF | 0 | identifier for 3DEffect mode off |
MODE_3D_EFFECT_TOP_BOTTOM | 1 | identifier for 3DEffect mode top_bottom |
MODE_3D_EFFECT_SIDE_BY_SIDE | 2 | identifier for 3DEffect mode top_bottom |
MODE_3D_EFFECT_LINE_BY_LINE | 3 | identifier for 3DEffect mode line_by_line |
MODE_3D_EFFECT_VERTICAL_STRIPE | 4 | identifier for 3DEffect mode vertical_stripe |
MODE_3D_EFFECT_FRAME_SEQUENCE | 5 | identifier for 3DEffect mode frame_sequence |
MODE_3D_EFFECT_CHECKER_BD | 6 | identifier for 3DEffect mode frame_sequence |
MODE_3D_EFFECT_FROM_2D_TO_3D | 7 | identifier for 3DEffect mode convert 2D to 3D |
MODE_3D_DEVICE_NOT_CONNECTED | -1 | Supports 3D Mode, but 3D Display is not connected. |
MODE_3D_NOT_SUPPORTED | 0 | No support for 3D Mode |
MODE_3D_ENABLE_OK | 1 | identifier 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 Support | Yes | |
SDK Constraint | None | |
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 Support | Y | |
SDK Constraint | None | |
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 Support | Y | |
SDK Constraint | None | |
Example | ||
webapis.displaycontrol.get3DModeSupportList(successCB, errorCB); |