VideoDRMLicense

Updated at: 2025-03-21 11:04

Obtain the digital rights management (DRM) license of a video.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/file/video_drm_license HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request body.

drmTypestringYes

The type of DRM encryption.

Valid values:

  • fairplay
  • widevine
widevine
licenseRequeststringNo

The request that is initiated to obtain the license.

CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object

The struct returned.

datastring

The returned DRM license.

cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3
statesstring

The request state returned by the DRM server.

0
device_infostring

The information about the device from which the DRM request was initiated.

""

Examples

Sample success responses

JSONformat

{
  "data": "cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3",
  "states": "0",
  "device_info": "\"\""
}

Error codes

For a list of error codes, visit the Service error codes.

  • On this page (1)
  • Debugging
  • Authorization information
  • Request syntax
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
Feedback