SetVideoSeekConfig

Last updated:2021-03-17 11:06:45

SetVideoSeekConfig

Description

You can call this operation to configure video seeking for a domain name.

Notes:

  • The origin server must support range requests.
  • MP4 and FLV files are supported.

Request syntax

The API request contains the specified directory /2016-09-01/domain/SetVideoSeekConfig, common request headers, and operation-specific request parameters. For more information, see the sample request.

Request headers

Header Required Type Description
X-Version Yes String The version number. Set the value to 2016-09-01.
X-Action Yes String The operation that you want to perform. Set the value to SetVideoSeekConfig.

Request parameters

Parameter Required Type Description
DomainId Yes String The ID of the domain name.
Enable Yes String Specifies whether to enable video seeking. Valid values: on and off. Default value: off.

Examples

Sample request

GET method:

GET /2016-09-01/domain/SetVideoSeekConfig?DomainId=2D08M8V&Enable=off
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetVideoSeekConfig
x-version: 2016-09-01

POST method:

POST /2016-09-01/domain/SetVideoSeekConfig
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetVideoSeekConfig
x-version: 2016-09-01
Content-Type: application/json

{
    "DomainId": "2D08M8V",
    "Enable": "off"
}

Sample response

  • Note: If this operation is successfully called, the HTTP status code 200 is returned, without a return value. If this operation fails to be called, the HTTP status code 403 or 400 is returned. For more information about the error codes for the HTTP status code 400, see Usage notes.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈