Learn how to use WebRTC with Wowza Streaming Engine. This tutorial walks you through how to apply for and configure a SSL Certificate, set up WebRTC via Wowza Streaming Engine Manager, and testing the streams by using WebRTC hosted publish and playback pages. For more information check out https://www.wowza.com/docs/set-up-web...
Transcript:
Setting up WebRTC requires the most recent version of Wowza streaming engine, as well as SSL or TLS encryption. To get started, we'll first go to wowza.com and click my account at the top to sign in. Once you're signed in, go to the stream lock tab, and enter your Wowza streaming engine license key. You'll also need to enter the public IP address for your Wowza streaming engine instance, and a certificate password.
Once all this has been entered, click apply for SSL certificate. When the application is complete, the certificate will appear under my SSL certificates. You'll be referencing the host name from this point further as your secure host. Download the certificate, and move the certificate file to your Wowza streaming engine installation under the CONF directory. This process will vary depending on your operating system.
Now, we can access our Wowza streaming engine manager to configure the use of the SSL certificate. Go under server, and select virtual host setup. Click on edit, and then scroll down to select add host port. Here, we can add a host port for the stream lock. Name it as such, leaving the type as streaming, a wild card for the IP address, and set the port to 443.
Now check enable SSL stream lock, and enter the path to the stream lock certificate. The path should have this format, as shown below, with the name being the first part of the host name. You can find it back in your Wowza account.
Once this information has been entered correctly, add the certificate password for when you first applied for the SSL certificate, and check use WebRTC. After the port has been added and saved, be sure to restart the virtual host before we begin adding our WebRTC features. Under applications, go to your application that will be using WebRTC. In this example, we'll use the live default.
Under WebRTC, click edit, and check the specified features you wish to be enabled. We'll check publish WebRTC to Wowza streaming engine in order to ingest WebRTC source streams to this application, play WebRTC from Wowza streaming engine, to deliver WebRTC content for playback from this application, and query published stream names to enable querying names from published WebRTC streams for this application.
Under ICE candidate setup, if adding UDP, which we recommend, you just need to enter the IP address for your Wowza streaming engine instance. For a TCP candidates, we'll add an ICE candidate. We'll also need to specify the port to use for WebRTC streaming. We may also choose to add additional codecs or even change the priority of what codec to use. Once we've saved our new settings, we'll also need to restart the application for changes to take effect.
Now we can test streaming WebRTC through Wowza streaming engine by using our hosted test pages. Click open WebRTC publish page, adding our signaling URL, which should start with WSS://, then contain your host name, slash WebRTC-session.json. Enter the application name, which, in this case, is live, and the stream name, which is whatever we want to call the stream. We can change the codec and sources, but, for now, we'll just go straight to publish. Once we're live, we'll see live in the corner of our video screen.
Back in Wowza streaming engine manager, we can go to incoming streams to confirm our WebRTC stream is being ingested. To play the stream as WebRTC, go back to WebRTC and select open WebRTC play page. Again, we'll need to enter our signaling URL, application name, and stream name. Hit play, and we'll see the livestream using the WebRTC protocol. To see the latency, we may want to adjust the browser windows, so we can see both the published and playback screens at the same time.
That's it for using WebRTC with Wowza streaming engine. Thanks for watching and happy streaming.
Смотрите видео Using WebRTC with Wowza Streaming Engine онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Wowza 17 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,656 раз и оно понравилось 41 людям.