Skip to main content
MP4 files use a different signing formula from HLS/DASH. The token is passed as a query parameter rather than embedded in the URL path. The formula optionally includes download speed limiting parameters (speed and buffer).
Advanced MP4 tokens cannot be combined with video secure tokens for HLS/DASH. If both are configured on the same CDN resource, the HLS/DASH token takes precedence.

Protected URL format

Where:
  • {token} — MD5 hash of the MP4 file path and signing parameters
  • {expiration} — Unix timestamp (seconds) at which the URL expires
  • &speed={speed} — optional; download speed limit (e.g. 1M, 500K)
  • &buffer={buffer} — optional; buffer size for rate limiting (e.g. 10M)
The speed and buffer query parameters must match the values included in the token signature. Tampering with these values returns 403 Forbidden.

String to sign

Without IP binding:
With IP binding:
An MP4 speed limit must be configured on the CDN resource for speed and buffer to take effect.

Sign examples

The following examples show how different parameter combinations change both the string to sign and the resulting URL. Secret: MySecr3tStr1ng Without speed limit or IP binding:
With speed limit (1M), buffer (10M), and IP binding (1.2.3.4):

Code examples

Python playground – https://www.onlineide.pro/playground/share/d6126cff-e97f-456b-b667-6a95030563b4