跳到主要内容

Schedule

With schedule control, you can implement time-based limitation for your content, ensuring content availability aligned with your scheduling requirements (e.g. specific timeframes or special campaigns).

To enable schedule control and define allowed access period for your VODs, configure the associated API request body during creation or update it later.

Configure the schedule request body with the following options:

Query ParametersDescription
enabledtrue
start_timeSpecify the time when the content become available in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ
end_timeSpecify the time when the content become no longer available in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ

Here is an example of a request body that schedules a video for playback from August 24th, 2023 at 2:15:22 PM UTC to August 31st, 2023 at 2:15:22 PM UTC:

"schedule":{
"enable":true,
"start_time":"2023-08-24T14:15:22Z",
"end_time":"2023-08-31T14:15:22Z"
}
警告

Before the scheduled start or end time is reached, you can edit them via the update API. However, beyond the point, they will become uneditable.

信息

The time zone will be automatically detected and set to the local time zone of the user's location. This means that if a user locates in a time zone differing from the server, the start_time and end_time will be automatically adjusted to match the user's local time zone.