top

TV.CLOSEDCAPTION

Retrieves the Closed Caption Property value of TV (property cc index and property index is passed as parameter)

Add the following line for tv.closedcaption class into a html file your own :

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

You can declare tv.closedcaption class like this :

  ex) var closedcaption = webapis.tv.closedcaption;


Methods

getClosedCaptionOption

Description
Retreives the Closed Caption Property value of TV (property cc index and property index is passed as parameter)
Parameters
■ccParamIndex
  - Number
  - Parameter index, refer Profile Index.
■ccParam
  - Number
  - Closed Caption property
Return■Number
  - success : current value set for FCC closed caption parameter
  - fail : return -1
Emulator SupportY
SDK Constraint- SDK does not have BP layer and hence closed caption BP APIs are stubbed. always displays 0 when setClosedCaptionOption() is called. - Samsung SDK 5.0 and above can be used for development.
Example
getResult = webapis.tv.closedcaption.getClosedCaptionOption(PROFILE_CC_FCC, CAPTION_FONT_SIZE);