To use Samsung Product API, <script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script> Should be loaded in index.html
To use Samsung Product API,
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
Should be loaded in index.html
This module defines the TV audio and video settings functionalities provided by the Tizen Samsung Product API.
Since : 2.3
Product : TV, AV, B2B
Defines a WebApi object instance of the Tizen Samsung Product API. The webapis.avinfo object enables access to AVInfo API functionality.
[NoInterfaceObject] interface AvInfoManagerObject { readonly attribute AvInfoManager avinfo; };
WebApi implements AvInfoManagerObject;
This interface provides methods to use the AvInfo functionalities.
[NoInterfaceObject] interface AvInfoManager { readonly attribute AvInfoDigitalCompMode AvInfoDigitalCompMode; DOMString getVersion(); AvInfoDigitalCompMode getDolbyDigitalCompMode(); boolean isHdrTvSupport(); };
This method get the plugin's version number.
DOMString getVersion();
Return Value :
Exceptions :
Code Example :
try { var value = webapis.avinfo.getVersion(); console.log("version value = " + value); } catch (error) { console.log("error code = " + error.code); }
This method get dolby digital component mode.
AvInfoDigitalCompMode getDolbyDigitalCompMode();
Deprecated : 4.0
try { var mode = webapis.avinfo.getDolbyDigitalCompMode(); console.log("mode = " + mode); } catch (error) { console.log("error code = " + error.code); }
This method is to check whether the HDR is supported or not.
boolean isHdrTvSupport();
try { var nResult = webapis.avinfo.isHdrTvSupport(); console.log("nResult = " + nResult); } catch (error) { console.log("error code = " + error.code); }
This interface defines the digital mode
[NoInterfaceObject] interface AvInfoDigitalCompMode { const unsigned long DOLBY_DIGITAL_COMP_MODE_LINE = 0; const unsigned long DOLBY_DIGITAL_COMP_MODE_RF = 1; };
module AvInfo { [NoInterfaceObject] interface AvInfoManagerObject { readonly attribute AvInfoManager avinfo; }; WebApi implements AvInfoManagerObject; [NoInterfaceObject] interface AvInfoManager { readonly attribute AvInfoDigitalCompMode AvInfoDigitalCompMode; DOMString getVersion(); AvInfoDigitalCompMode getDolbyDigitalCompMode(); boolean isHdrTvSupport(); }; [NoInterfaceObject] interface AvInfoDigitalCompMode { const unsigned long DOLBY_DIGITAL_COMP_MODE_LINE = 0; const unsigned long DOLBY_DIGITAL_COMP_MODE_RF = 1; }; };