By default, BlendVision will handle the delivery of content created within our platform, however, we also offer the flexibility of BYO CDN-Bring Your Own CDN which enables you to leverage your AWS CloudFront distributions for content delivery within BlendVision. You will configure AWS CloudFront distributions with the origin and cache behavior policies that BlendVisione provides and complete the settings accordingly.
This guide will walk you through the setup and configurations of integrating your own CDN.
The topics covered in the article :
- AWS CloudFront Preparations
- Cache Behavior Policy for Live and VOD
- Origin Access Control for VOD
- Create Distribution
- CDN Host creation / Origin and Cache Behavior Configurations
AWS CloudFront Preparations
Cache Behavior Policy for Live and VOD
To complete configurations for Livestreams and VOD, it is necessary to create sets of cache behavior policies accordingly to ensure data transmission and playback performance. Please strictly follow the policy settings provided below and apply them to the respective distributions.
- Go to Policies and click Create cache policy. Create the following policies according to the parameters provided.
Cache Behavior Policy_Live Segment
Cache Behavior Policy_Live Manifest
Cache Behavior Policy_Ultra Low Latency Live Segment
Cache Behavior Policy_Ultra Low Latency Live Manifest
Cache Behavior Policy_VOD Segment
Cache Behavior Policy_VOD Manifest
Origin Access Control for VOD
- Go to Security → Origin Access then click Create control setting. Create the following access control according to the parameters provided.
Origin Access_VOD
Once you have created the above cache behavior policies and Origin Access control, you will use them to configure distributions later.
Create Distribution
- Go to Distributions and click Create distribution. Under the Origin domain, enter random characters for the time being, you will create origin afterward.
- Follow the below parameters for distribution creation.
For VOD distributions, note the following difference
- Enable Origin access control setting
- Select the origin access you have created
CDN Host creation / Origin and Cache Behavior Configurations
To utilize BYO_CDN functionality, provide the distribution information to BlendVision.
- Log in to BlendVision, then go to General Settings > BYO CDN > click Create CDN Host
- Enter a custom Display Name for the distribution then provide your AWS ID and Distribution Host. Copy and paste the complete distribution domain name URL from the AWS console.
- BlendVision will provide you with the origin after a Livestream or VOD has been created. You will add the Origin Domain after obtaining the information.
- Click Create Host
Note: You can modify created Distribution Host but note that it may affect the playback for Livestreams or VODs that you have enabled BYO_CDN. We recommend modification after the Livestreams or VODs have been completed playback not prior.
- Create Live
- If you wish to enable BYO_CDN for a Livestream, use the toggle to enable it and select a created Host from the dropdown.
- Once the Livestream has been created, BlendVision will prepare the following information for you to configure to the assigned distribution.
- Go to the distribution Origin tab and click Create origin. Copy the Origin path provided and paste it to the Origin domain field.
- Go to the Behaviors tab and click Create behavior
- Copy the Live HLS and MPEG-DASH Cache behavior prefix to create the following 4 behaviors
- out/v1/9e0f041f3abb4fdab989562f5dfeda61/*.ts (select the live segment policy as Cache policy)
- out/v1/9e0f041f3abb4fdab989562f5dfeda61/*.m3u8 (select the live manifest policy as Cache policy)
- out/v1/e267e3ff39734bc4b5029dfceb461365/*.mpd (select the live segment policy as Cache policy)
- out/v1/e267e3ff39734bc4b5029dfceb461365/*.mp4 (select the live manifest policy as Cache policy)
- Create VOD
- If you wish to enable BYO_CDN for a VOD, use the toggle to enable it and select a created Host from the dropdown.
- Once the VOD has been created, BlendVision will prepare the following information for you to configure to the assigned distribution.
- Go to the distribution Origin tab and click Create origin. Copy the Origin path provided and paste it to the Origin domain field.
- Go to the Behaviors tab and click Create behavior
- Copy the Cache behavior prefix to create the following 3 behaviors
- 91bb67f9-4f4e-4226-831d-9874a7862b61/vod/* (select the VOD segment policy as Cache policy)
- 91bb67f9-4f4e-4226-831d-9874a7862b61/vod/*.mpd (select the VOD manifest policy as Cache policy)
- 91bb67f9-4f4e-4226-831d-9874a7862b61/vod/*.m3u8 (select the VOD manifest policy as Cache policy)