Delivering live streaming video with CloudFront and AWS Media Services

0 votes

i am creating react app by following https://github.com/aws-solutions/live-stream-on-aws github repo to implement live-stream-on-aws. I understood the steps of starting live, but i got stuck on cloud front. in this repo there is every step of how to create the input, medialive channel, mediapackage channel, endpoint. But i was not able to find connecting mediapackage to cloudfront. the steps i am doing in node js:

create media package, create endpoint, create input security group, create input, create media live channel,

in this process i am able to play live stream with endpoint url, but it is said that i have to broadcast the live on cloudfront. How can i connect cloudfront. Or is there any github repo like above one? If you can help, i would really appreciate it! Thank you very much!

IN the read me file of the repo it is clearly described the process as an image (https://github.com/aws-solutions/live-stream-on-aws#live-streaming-on-aws) if check at the end of the process there is cloudfront. in the source code i was not able to find even the word "cloudfront".

Feb 16, 2023 in AWS by Ashwini
• 5,430 points
515 views

1 answer to this question.

0 votes

To connect your MediaPackage channel to CloudFront, you need to create a CloudFront distribution and configure it to use your MediaPackage channel as the origin.

Here are the high-level steps to do this:

  1. Create a CloudFront distribution by going to the CloudFront console, clicking "Create Distribution," and selecting "Web" as the delivery method.

  2. In the "Origin Domain Name" field, select the MediaPackage endpoint that you created earlier.

  3. In the "Viewer Protocol Policy" field, select "HTTPS Only."

  4. In the "Alternate Domain Names (CNAMEs)" field, enter the domain name you want to use for your CloudFront distribution. You will need to create a DNS record pointing to your CloudFront distribution's domain name.

  5. Complete the rest of the CloudFront distribution settings, including configuring SSL and setting up any necessary caching behaviors.

  6. After your CloudFront distribution is created, you can access your live stream by going to the domain name you specified in step 4.

As for a GitHub repo, AWS has an official sample that demonstrates how to set up live streaming with CloudFront and MediaPackage: https://github.com/aws-samples/aws-media-services-simple-live-workflow. This sample covers the entire workflow, from creating the input to delivering the live stream with CloudFront. You can use this as a reference implementation for your own project.

Ready to level up your coding game? Uncover the realm of microservices with our cutting-edge Microservices Developer Certification!

answered Feb 17, 2023 by sarit
• 1,830 points

Related Questions In AWS

+1 vote
2 answers

Starting with an AWS Instance with API and AUTHPARAMS

The API is usually much easier to ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,670 points
3,390 views
0 votes
1 answer
0 votes
1 answer

Streaming live video to small group of viewers

You can try Ably Realtime. The platform's most ...READ MORE

answered Sep 12, 2018 in AWS by Priyaj
• 58,090 points
403 views
+1 vote
1 answer

Hosting static website with AWS S3 and Route 53

Add an additional bucket called myblog.com and ...READ MORE

answered Dec 4, 2018 in AWS by Archana
• 5,640 points
796 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Problem with connecting frontend and backend services through internal load balancer

It sounds like the communication between the ...READ MORE

answered Feb 17, 2023 in AWS by sarit
• 1,830 points
415 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP