# Function Description

Used to play video resources reverse

# Request

# Request example

GET /resource/reverse

# Request parameters

Name Description Type Required
resourceId resource id, returned by resource/list interface long yes

# Request Headers

Name Description Type Mandatory
Authorization User token information string true

# Request Body

none

# Response

# Response Header

No special response header

# Response Body

The response is divided into two cases

  1. If the resource has not been reversed, the jobId will be returned, and the job/info will be queried according to the jobId. When the task is completed, the interface can be requested again.
{
  "code": 0,
  "message": "success",
  "data": {
    "jobId": 1111
  }
}
  1. The resource has been reversed successfully, and the reversed information is returned.
{
  "code": 0,
  "message": "success",
  "data": {
    "duration": 7000,
    "coverUrl": "https://wslhost.com/fif4bf24b2eaf26b773c6029419_cover.jpg",
    "createdAt": 1653994413000,
    "leftChannelUrl": "",
    "rightChannelUrl": "",
    "alphaM3u8Url": "https://wslhost.com/file/af26b773c6029419.m3u8",
    "width": 1920,
    "alphaUrl": "https://wslhost.com/fil304cbba3834a003154aa50.mp4",
    "thumbnailInfo": {
      "extension": "jpg",
      "urlPrefix": "https://wslhost.c77b4f4bf24b2eaf26b773c6029419",
      "interval": 1000
    },
    "url": "https://wslhost.com/file/edic304cbba3834a003154aa50.mp4",
    "m3u8Url": "https://wslhost.com/file7177b4f4bf24b2eaf26b773c6029419.m3u8",
    "height": 1080
  }
}

The response body of the failed request is

{
  "code": <errorCode>,
  "message": <errorMessage>,
  "data": null
}