Try Live Demo

Streaming high-quality video content to a large audience demands robust infrastructure. In this guide, we’ll explore how to harness the power of Google Cloud CDN alongside Ant Media Server to deliver HLS streams seamlessly to millions of viewers worldwide.

What is Google Cloud CDN?

Google Cloud CDN stands as a global network of edge servers strategically positioned across the globe. Leveraging Google’s distributed points of presence (PoPs), it optimizes content delivery by caching data at these edge locations. This proximity reduces latency, ensuring swift and reliable access to content for end-users.

What Are The Prerequisites?

Before diving into configuration, ensure the following services are enabled on your Google Cloud Account.

  • Google Cloud Marketplace
  • Compute Engine
  • Load Balancing
  • Cloud CDN

Launch Ant Media Server Enterprise Edition

Ant Media Server Enterprise Edition is available on Google Cloud Marketplace.

ams gcp cdn 1

  • Initiate the installation process by clicking the Launch button.

ams gcp cdn 2

  • Note the External IP address upon completion as it will be used later.

ams gcp cdn 3 1

Configuring Google Cloud CDN

Now that we have successfully launched the Ant Media Server on the Google Cloud Marketplace, let’s configure the Cloud CDN.

  • Navigate to the Cloud CDN service and select ADD ORIGIN.

ams gcp cdn 4

  • Choose Custom Origin and input the External IP address of the Ant Media Server Enterprise instance with port 5080. Specify the Origin Name and click Next.

ams gcp cdn 5

  • Select Create new load balancer for me, enter the Load Balancer Name, and continue with Next.

ams gcp cdn 6

  • Configure TTL settings, leave the other settings to default and click Done to finalize the installation.

ams gcp cdn 7

Publishing a Live Stream with Ant Media Server

Now that we have everything set, let’s broadcast a live stream in Ant Media Server following the Publish Live Stream instructions and note the Stream Id.

  • Create the HLS playback URL using your cloud CDN load balancer IP address in the following format:
http://your_cloudcdn_load_balancer_ip_address/WebRTCAppEE/play.html?id=your_stream_id&playOrder=hls

Launch the URL in your browser to verify the stream playback, now distributed seamlessly via the CDN.

Screenshot 2024 02 03 190140

Conclusion

In this guide, we’ve elucidated the process of configuring Google Cloud CDN with Ant Media Server for HLS streaming. By following these steps, you can ensure efficient content delivery to your audience, enhancing their viewing experience.

If you have questions or need any type of support, contact us via a form or schedule a meeting to have a coffee and chat, or write directly to contact@antmedia.io so that we can democratize live streaming together.

Categories: Tutorial

Murat Ugur

Murat is a Software Developer and a Technical Support Engineer at the same time at Ant Media. With a remarkable 15+ years in the IT domain, including 13 years dedicated to Linux System administration, Murat brings a wealth of experience to the table. His expertise is grounded in technologies like bash scripting, python, and puppet.

chatsimple
Warning: Undefined array key "promocode" in /home/mirror.antmedia.io/public_html/wp-content/themes/hestia-child/footer.php on line 70