This topic describes how to configure M3U8 encryption and rewriting.
Overview
To accelerate the delivery of HTTP Live Streaming (HLS) content, Alibaba Cloud Content
Delivery Network (CDN) rewrites an #EXT-X-KEY
tag in an M3U8 file for HLS content. After the #EXT-X-KEY
tag is rewritten, the specified parameter name and value are added to the end of
the URI attribute in the tag to decrypt the M3U8 file. Client requests include the
parameter name and value that are required for rewriting.
The M3U8 encryption and rewriting feature allows you to enable M3U8 encryption and rewrite M3U8 files for HLS content.
You can specify a custom parameter name to rewrite an M3U8 file. The custom parameter
name must be the same as that included in the client requests. If you do not use a
custom parameter name, the parameter name MtsHlsUriToken
is used by default.
Procedure
Example
foobar
. The following figure shows this custom parameter name.
foobar
parameter. The parameter value is yyyy
. To decrypt the M3U8 file and accelerate the delivery of the requested HLS content,
Alibaba Cloud CDN adds foobar=yyyy
to the end of the URI attribute in the #EXT-X-KEY
tag.