top

TV

Handles the basic TV commands (for example, EPG, Callback event, and so on).

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

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

You can declare TV class like this :

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

        plugin.Open('TV', '1.001', 'TV');

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


Constants

NameValueDescription
PL_TV_DISPLAY_PANEL_LCD0The Panel LCD
PL_TV_DISPLAY_PANEL_PDP1The Panel PDP
PL_TV_DISPLAY_PANEL_DLP2The Panel DLP
PL_TV_DISPLAY_PANEL_LED3The Panel LED
PL_TV_DISPLAY_PANEL_LED_EDGE4The Panel LED_EDGE
PL_TV_DISPLAY_PANEL_LED_DIRECT5The Panel LED_DIRECT
PL_TV_DISPLAY_PANEL_CRT6The Panel CRT
PL_TV_DST_TYPE_OFF 0DST Type off
PL_TV_DST_TYPE_ON1DST Type on
PL_TV_DST_TYPE_AUTO2DST Type auto
PL_TV_PRODUCT_TYPE_TV0Product type TV
PL_TV_PRODUCT_TYPE_MONITOR1Product type Monitor
PL_TV_PRODUCT_TYPE_BD2Product type BD
PL_TV_TIMEZONE_NEWFOUNDLAND0ATSC USA NEWFOUNDLAND
PL_TV_TIMEZONE_ATLANTIC1ATSC USA ATLANTIC
PL_TV_TIMEZONE_EASTERN 2ATSC USA EASTERN
PL_TV_TIMEZONE_CENTRAL 3ATSC USA CENTRAL
PL_TV_TIMEZONE_MOUNTAIN 4ATSC USA MOUNTAIN
PL_TV_TIMEZONE_PACIFIC 5ATSC USA PACIFIC
PL_TV_TIMEZONE_ALASKA 6ATSC USA ALASKA
PL_TV_TIMEZONE_HAWAII 7ATSC USA HAWAII
PL_TV_TIMEZONE_SEOUL 100ATSC KOR
PL_TV_TIMEZONE_REGION_0 200DVB Time Zone Offset (Region 0) - Australia : Use in countries that do not have multi time zones
PL_TV_TIMEZONE_REGION_1 201DVB Time Zone Offset (Region 1) - Australia : reserved , Spain
PL_TV_TIMEZONE_REGION_2 202DVB Time Zone Offset (Region 2) - Australia : New South Wales/ACT , Spain
PL_TV_TIMEZONE_REGION_3 203DVB Time Zone Offset (Region 3) - Australia : Victoria
PL_TV_TIMEZONE_REGION_4 204DVB Time Zone Offset (Region 4) - Australia : Queensland
PL_TV_TIMEZONE_REGION_5 205DVB Time Zone Offset (Region 5) - Australia : South Australia
PL_TV_TIMEZONE_REGION_6 206DVB Time Zone Offset (Region 6) - Australia : Western Australia
PL_TV_TIMEZONE_REGION_7 207DVB Time Zone Offset (Region 7) - Australia : Tasmania
PL_TV_TIMEZONE_REGION_8 208DVB Time Zone Offset (Region 8) - Australia : Northern Territory

Methods

FlagStreamDST

Description
The FlagStreamDST function gets the DST (Daylight Savings Time) on/off information from the current stream.
Parameters
none
Return■Success
  - positive value
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
TVPlugin.FlagStreamDST();

GetDST

Description
The GetDST function gets the current DST (Daylight Savings Time) type.
Parameters
none
Return■Success
  - current DST type ( PL_TV_DST_TYPE )
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
TVPlugin.GetDST();

GetTimeZone

Description
The GetTimeZone function gets the time zone (PL_TV_TIMEZONE).
Parameters
none
Return■Success
  - time zone( PL_TV_TIMEZONE )
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
TVPlugin.GetTimeZone();

GetTimeZone_Offset

Description
The GetTimeZone_Offset function gets the offset of the time zone (PL_TV_TIMEZONE).
Parameters
none
Return■Success
  - offset of timezone( PL_TV_TIMEZONE )
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
TVPlugin.GetTimeZone_Offset();

GetDisplayPanelType

Description
The GetDisplayPanelType function gets the display panel type (for example, LCD, LED, and so on).
Parameters
none
Return■Success
  - display panel type ( PL_TV_DISPLAY_PANEL )
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if( TVPlugin.GetDisplayPanelType() == PL_TV_DISPLAY_PANEL_PDP);
{
    \\...
}

GetProductType

Description
The GetProductType function gets the product type (for example, TV, BD, Monitor, and so on).
Parameters
none
Return■Success
  - product type. ( PL_TV_PRODUCT_TYPE )
 
■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if( PL_TV_PRODUCT_TYPE_BD == TVPlugin.GetProductType())

    \\...
}

GetProductCode

Description
The GetProductCode function gets the product code (for example, UNNOC7000).
Parameters
■region
  - Number 
  - flag for adding region code.
   * 1: add “_[region]”, 0: No region
Return■Success
  - target product code

■Fail
  - negative value
Emulator SupportY
SDK ConstraintNone
Example
if( "UNNOC7000_USA" == TVPlugin.GetProductCode(1)) {

    \\...
}