The video seeking feature helps users navigate through video or audio content by dragging the playback progress bar. When a user adjusts the playback position, the client sends a URL request to the server to load the desired segment. The enables users to seek to a specific position without compromising the playback quality when they play video or audio content. This topic describes how to configure video seeking.
After you enable video seeking, the time to first byte (TTFB) is increased by about 30 ms.
Procedure
Log on to the Alibaba Cloud CDN console.
In the left-side navigation pane, click Domain Names.
On the Domain Names page, find the domain name that you want to manage and click Manage in the Actions column.
In the left-side navigation tree of the domain name, click Video.
In the Video Seeking section, turn on Video Seeking.
Optional. Allow FLV files to be sought by time or customize parameters for video seeking
Time-based FLV Seeking
Turn on Time-based FLV Seeking.
Customize Parameters
Click Modify to the right of Custom Parameters.
In the Customize Parameters for Video Seeking dialog box, customize the start and end parameter names.
NoteThe default names of the start and end parameters are
start
andend
. Parameter names can contain letters, digits, and underscores (_). Examples: 123, aabbAABB, and aa_BB123.Click OK.
Request format
The following table describes the supported file formats for video seeking and sample URLs.
File format | Metadata | Start parameter | Example |
MP4 | The metadata of a video file on the origin server must be included in the file header instead of the file tail. | The start parameter specifies the position in seconds, rounded to the third decimal point. For example,
| The request URL |
FLV | Video files on the origin server must contain metadata. | The start parameter specifies the position in bytes. Decimals are not supported, and the value is rounded down to the nearest positive integer. However, If you turn on Time-based FLV Seeking, the unit of the start and end parameters is second.
| The request URL |