Content Delivery Networks (CDN)
- Overview
- Since AWS has global presence and lots of pop locations across the world AWS also offers CDN using Cloud front
- The source of the videos/audios/images/docs can be s3.
- Lets create an s3 bucket with few videos in it
- Now to view the videos let me create an html page
<head>
<title>s3 bucket</title>
</head>
<body>
<video width="320" height="240" controls>
<source src="https://qtmyvideosbucket.s3.ap-south-2.amazonaws.com/one.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video width="320" height="240" controls>
<source src="https://qtmyvideosbucket.s3.ap-south-2.amazonaws.com/two.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video width="320" height="240" controls>
<source src="https://qtmyvideosbucket.s3.ap-south-2.amazonaws.com/three.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video width="320" height="240" controls>
<source src="https://qtmyvideosbucket.s3.ap-south-2.amazonaws.com/four.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
- Refer Here for the website
- Lets create a cloudfront distribution of videos and use that in the web page
- Refer Here for the cdn url