top

DrmInfo API

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 DRM information retrieval functionalities provided by the Tizen Samsung TV Product API.

Since : 2.3

Product : TV

Privilege level: partner

Privilege: http://developer.samsung.com/privilege/drminfo

Table of Contents

  1. 1. Interfaces
    1. 1.1. DrmInfoManagerObject
    2. 1.2. DrmInfoManager
  2. 2. Full WebIDL

Summary of Interfaces and Methods

Interface Method
DrmInfoManagerObject  
DrmInfoManager

DOMString getVersion ()

11. Interfaces

1.1. DrmInfoManagerObject

Defines a WebApi object instance of the Tizen Samsung TV Product API.
The webapis.drminfo object enables access to DrmInfo API functionality.

[NoInterfaceObject]interface DrmInfoManagerObject {
  readonly attribute DrmInfoManager drminfo;
};

  WebApi implements DrmInfoManagerObject;

Attributes

1.2. DrmInfoManager

Provides methods for DrmInfo functionalities.

[NoInterfaceObject]interface DrmInfoManager {
  DOMString getVersion();
};

Methods

getVersion
Retrieves the plugin version number.

DOMString getVersion();

Since : 2.3

Product : TV

Privilege level: partner

Privilege: http://developer.samsung.com/privilege/drminfo

Return value:

DOMString Plugin version

Exceptions:

  • WebAPIException
    • with error type SecurityError, if the application does not have the privilege to call this method.

Code example:


try {
  var value = webapis.drminfo.getVersion();
  console.log(" version value = " + value);
} catch (error) {
  console.log(" error code = " + error.code);
}
 

2. Full WebIDL


module DrmInfo {
  [NoInterfaceObject]interface DrmInfoManagerObject {
    readonly attribute DrmInfoManager drminfo;
  };

  WebApi implements DrmInfoManagerObject;

  [NoInterfaceObject]interface DrmInfoManager {
    DOMString getVersion();
  };
};