top

SCREEN

Handles the TV screen commands (for example, 3D Effect).

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

  object id="plugin" classid="clsid:SAMSUNG-INFOLINK-SEF" style="width:0px; height:0px;">/object>

You can declare Screen class like this :

  ex) plugin = document.getElementById("plugin");

        plugin.Open('Screen', '1.003', 'Screen');

        plugin.Execute('method', 'parm1', 'parm2');


Constants

NameValueDescription
PL_SCREEN_3DEFFECT_MODE_OFF0The state of current 3DEffectMode of the DTV is off.
PL_SCREEN_3DEFFECT_MODE_TOP_BOTTOM1The state of current 3DEffectMode of the DTV is top bottom.
PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE2The state of current 3DEffectMode of the DTV is side by side.
PL_SCREEN_3DEFFECT_MODE_LINE_BY_LINE3The state of current 3DEffectMode of the DTV is line by line.
PL_SCREEN_3DEFFECT_MODE_VERTICAL_STRIPE4The state of current 3DEffectMode of the DTV is vertical stripe.
PL_SCREEN_3DEFFECT_MODE_FRAME_SEQUENCE5The state of current 3DEffectMode of the DTV is frame sequence.
PL_SCREEN_3DEFFECT_MODE_CHECKER_BD6The state of current 3DEffectMode of the DTV is checker BD.
PL_SCREEN_3DEFFECT_MODE_FROM_2D_TO_3D7The state of current 3DEffectMode of the DTV is from 2D to 3D.

Methods

Flag3DEffectSupport

Description
Flag3DEffectSupport function returns whether device supports 3DEffect or not.
Parameters
none
Return■Success
  - positive value
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if (1 == SefPlugin.Execute("Flag3DEffectSupport")) {
    if (PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE == ScreenPlugin.Get3DEffectMode()) {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF);
        }
    } else {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE);
        }
    }
}

Set3DEffectMode

Description
The Set3DEffectMode function sets the 3DEffect.
Parameters
■mode
  - PL_SCREEN_3DEFFECT_MODE 
  - 3DEffect mode
Return■Success
  - positive value
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if (1 == SefPlugin.Execute("Flag3DEffectSupport")) {
    if (PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE == SefPlugin.Execute("Get3DEffectMode")) {
        if (1 == SefPlugin.Execute("Check3DEffectMode",PL_SCREEN_3DEFFECT_MODE_OFF)) {
            SefPlugin.Execute ("Set3DEffectMode",PL_SCREEN_3DEFFECT_MODE_OFF);
        }
    } else {
        if (1 == SefPlugin.Execute("Check3DEffectMode",PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE)) {
            SefPlugin.Execute("Set3DEffectMode",PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE);
        }
    }
}

Get3DEffectMode

Description
Get3DEffectMode function returns a current 3DEffectMode (PL_SCREEN_3DEFFECT_MODE).
Parameters
none
Return■Success
  - current 3DEffectMode (PL_SCREEN_3DEFFECT_MODE)
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if (1 == SefPlugin.Execute("Flag3DEffectSupport")) {
    if (PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE == SefPlugin.Execute("Get3DEffectMode")) {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF);
        }
    } else {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE);
        }
    }
}

Check3DEffectMode

Description
Check3DEffectMode function returns whether 3DEffect mode can be changed to input mode or not.
Parameters
■mode
  - PL_SCREEN_3DEFFECT_MODE 
  - 3DEffect mode
Return■Success
  - positive value
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if (1 == SefPlugin.Execute("Flag3DEffectSupport")) {
    if (PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE == SefPlugin.Execute("Get3DEffectMode")) {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_OFF);
        }
    } else {
        if (1 == SefPlugin.Execute("Check3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE)) {
            SefPlugin.Execute("Set3DEffectMode", PL_SCREEN_3DEFFECT_MODE_SIDE_BY_SIDE);
        }
    }
}