Learn how to stream directly to Wowza CDN™ and use its edge network to deliver streams to global audiences over HLS with Wowza Streaming Engine™ media server software. You can send a single stream or a group of transcoded renditions of a live stream directly to a Wowza CDN on Fastly endpoint. This workflow allows you to bypass transcoding in Wowza Video and just use the Wowza Video edge network to deliver the stream to viewers.
This article explains how to create a Fastly stream target for a pull-based workflow. This requires that you configure your firewall to allow proper traffic flow and security.
Alternatively, you may configure your connection to Wowza CDN on Fastly for a push-based workflow. This requires that you use an Amazon account for S3 storage, but eliminates the need to configure your firewall.
To configure your stream target using a pull connection, see Send Apple HLS and MPEG-DASH content to Amazon S3 using Wowza Streaming Engine.
Important: If you are using the provided Wowza Video player, you'll need to create a new livestream and update the player embed code on your website.
Video tutorial: Stream to Wowza CDN with a pull-based workflow
See how to configure your connection to Wowza CDN on Fastly for a pull-based workflow.
Before you start
You should be familiar with the following concepts:
- Scaling Wowza Streaming Engine with Wowza CDN – Review the workflows for using Wowza CDN with Wowza Streaming Engine to determine which best fits your streaming needs: streaming directly to Wowza CDN, as described in this article, or sending a stream to Wowza Video for trancoding and delivery over Wowza CDN.
1. Create a Live HTTP Origin application
To send streams directly to Wowza CDN, you need to use a Live HTTP Origin application in Wowza Streaming Engine Complete the following steps to create one if you haven't already.
Note: Content delivery networks, including Wowza CDN, don't support adaptive bitrate streaming based on SMIL files. To send a set of adaptive bitrate renditions to a CDN endpoint, you must use the Transcoder feature to produce renditions with the same stream name prefix.
- In Wowza Streaming Engine Manager, click the Applications tab, and then click Add Application in the contents panel.
- On the Add Application page, click Live HTTP Origin.
- In the New Application dialog box, name your application and click Add.
- Click Save to save the application with default values.
You will use this application's name and the names of any streams you send to it in the playback URL that you get from Wowza Video in the following steps.
2. Create a Wowza CDN on Fastly stream target in Wowza Video
- Sign into Wowza Video
- Click Advanced on the menu bar, and then click Stream Targets.
- Click Add Target, select Wowza CDN on Fastly, and then click Add.
- Specify the Target Name. The Target Name is required but doesn't have to be unique, and it can't be longer than 255 characters.
- Select Enable a Custom Origin to connect your Wowza Streaming Engine instance to this stream target.
- Select the region where your Wowza Streaming Engine instance is located for Custom Origin Region.
- Set custom_origin_URL to your Wowza Streaming Engine instances domain or public IP address starting with http:// or https://. This will be the address for the location where you are running engine.
Note: Your address must be a host address with no paths. For examples http://220.127.116.11, http://my.domain.com or https://my.domain.com
- If your instance of Engine is protected by a firewall, you must configure the firewall to allow incoming connections from the following Wowza servers on the appropriate port (80 or 443). For improved security, we strongly recommend you only add the following addresses to your firewall rules to allow Wowza Video to access Engine through your firewall using port forwarding:
- IP addreses are subject to change.
- We recommend you configure Engine to utilize port 443 with SSL to help secure your server.
- Port-forwarding is necessary for most non-host based firewalls.
Wowza Video generates a target and displays the target detail page. You can find the target's playback URL on the Playback URLs tab.
3. Test the connection
Streams sent directly to Wowza CDN targets for distributed delivery are first sent to the Wowza Streaming Engine Live HTTP Origin application and then played using a Wowza CDN playback URL provided by Wowza Video.
- Start the stream in the H.264 camera or encoder that's sending the stream to your live application in Wowza Streaming Engine.
- Verify that the stream is published by clicking Incoming Streams for your application and then clicking the stream name.
The stream detail page displays the Status of the stream (Active) as well as details about connections, uptime, and throughput for the published stream.
- In Wowza Video, on your stream target page, get the playback URL by clicking Playback URLs and then HLS. For example,
- Verify that the stream is playing by pasting the playback URL into an HLS player.
- Stop the stream in the source camera or encoder to end your test connection.
Viewer data for Wowza CDN on Fastly stream targets is available in near-real time. Use the following resources to get viewer data:
- Usage Details page in Wowza Video
- Get viewer data for a Wowza CDN stream target with the Wowza Video REST API
- Scaling Wowza Streaming Engine with Wowza CDN
- Send a stream from Wowza Streaming Engine to Wowza Video for transcoding
- Protect a Wowza CDN on Fastly stream target with token authentication in Wowza Video
- Geo-block Wowza CDN on Fastly stream targets in Wowza Video
- Manage HLS playback over SSL for Wowza CDN on Fastly in Wowza Video