Domain whitelisting is available for workspace owners and admins. When no domains are configured, videos can be embedded anywhere.
How It Works
Default Behavior
- No domains configured: Videos can be embedded on any website
- Domains configured: Only whitelisted domains can stream videos
- Blocked domains: Show a user-friendly “Video Unavailable” message
Validation Process
- Video starts playing immediately for the best user experience
- Domain validation runs asynchronously in the background
- The validation request is sent to
https://e.trackplay.io/check - If the domain is not whitelisted, video playback is stopped and blocked
- If validation fails (network issues), videos continue playing as fallback
Managing Your Whitelist
Accessing Domain Settings
- Navigate to your workspace settings
- Click the “Domain Whitelist” tab
- Add, edit, or remove domains as needed
Adding Domains
1
Click Add Domain
Click the ”+ Add domain to whitelist” button
2
Enter Domain
Enter the exact domain name (e.g.,
example.com)- Do not include
http://orhttps:// - Subdomains must be added separately
3
Add Description
Optionally add a description to help identify the domain
4
Save
Click “Add Domain” to save the whitelist entry
Domain Format Examples
Managing Existing Domains
Edit Domain
- Click the “Edit” button next to any domain
- Modify the hostname, description, or active status
- Click “Update Domain” to save changes
Deactivate Domain
- Edit the domain and uncheck “Active”
- Inactive domains will block video playback
- Useful for temporarily restricting access
Remove Domain
- Click the “Remove” button next to any domain
- Confirm the deletion in the popup
- Domain will be permanently removed from whitelist
Integration Considerations
Player Behavior
When a domain is blocked:- Video starts playing normally for optimal user experience
- Domain validation happens asynchronously in the background
- If domain is not whitelisted, video playback is stopped and shows:
- Destroys HLS instance to stop streaming
- Resets video element source
- Shows user-friendly blocked overlay
- Tracks ‘domain-blocked’ event for analytics
Error Handling
If domain validation fails due to network issues:- Videos will play normally (fail-safe approach)
- Error is logged to browser console
- Consider implementing retry logic in your integration
Development & Testing
During development, you may want to:- Add
localhostto your whitelist - Add your staging domain
- Test blocked domain behavior on unauthorized domains
Common Use Cases
E-commerce Store
Marketing Campaign
Content Protection
Troubleshooting
Videos Not Playing
- Check domain whitelist: Ensure the current domain is added
- Verify subdomain:
www.example.com≠example.com - Check domain status: Ensure domain is marked as “Active”
Common Issues
Getting Help
If you encounter issues:- Check browser console for validation errors
- Verify domain format matches exactly
- Contact support with your workspace code and domain details
Domain validation logs are available in your workspace analytics for monitoring and debugging purposes.
