Configure Playback Restriction
A 4-step recipe with Mux. We can help you get access.
Recipe · 4 steps
Configure Playback Restriction
with Mux
Works with AI assistants
Create a playback restriction and apply referrer and user-agent rules.
- Create a playback restriction with an initial referrer and user agent policy.
- Update the referrer domain restriction to the supplied allowed domains list.
- Update the user agent restriction rules for the playback restriction.
- Read the playback restriction back to confirm the final referrer and user agent policy.
What you'll need to have ready
- allowedDomains: List of domains allowed to play videos (e.g. ["*.example.com", "foo.com"]).
- allowNoReferrer: Whether to allow playback requests that arrive with no Referer header.
- allowNoUserAgent: Whether to allow playback requests that arrive with no User-Agent header.
- allowHighRiskUserAgent: Whether to allow playback from user agents flagged as high risk.
For your developer
Arazzo workflow mux-com:playback-restriction-setup, 4 operations: create-playback-restriction → update-referrer-domain-restriction → update-user-agent-restriction → get-playback-restriction. Specs on APIs.io.