Configuring Wowza Streaming Engine for WebRTC involves several steps. Please note that the specifics may vary depending on your use case and the version of Wowza Streaming Engine you are using. Below is a basic example of a Wowza WebRTC configuration:
Wowza Streaming Engine WebRTC Configuration Example
1. Enable WebRTC in Wowza Streaming Engine Manager:
- Open Wowza Streaming Engine Manager in your web browser.
- Navigate to the
Applicationstab. - Select your application (e.g.,
liveor a custom application) and click on it.
2. **Add WebRTC Playback and Publisher:
- In the
Applicationtab, scroll down toAvailable Streams. - Enable
webrtcplayfor playback andwebrtcpublishfor publishing.
3. Configure WebRTC Playback:
- Navigate to
Stream Files>web.xmlin your Wowza installation directory. - Add the following property to enable WebRTC playback:
<property> <name>streamReaderPlayMethod</name> <value>cupertino-live</value> </property>
4. Configure WebRTC Publishing:
- Navigate to
Stream Files>Application.xmlin your Wowza installation directory. - Add the following properties inside the
<Streams>section to configure WebRTC publishing:<StreamType>live</StreamType> <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
5. Enable WebRTC in WebRTC Properties File:
- Navigate to
conf/directory in your Wowza installation. - Open the
WebRTCproperties file (e.g.,WowzaStreamingEngine/manager/conf/webrtc/Server.xml). - Uncomment the following lines to enable WebRTC:
<Port>1935</Port> <HTTPSConfig> <Port>443</Port> </HTTPSConfig>
6. Restart Wowza Streaming Engine:
- After making the necessary changes, restart Wowza Streaming Engine to apply the configurations.
7. Secure WebRTC with SSL (Optional):
- If you want to secure WebRTC with SSL, you’ll need an SSL certificate. Update the SSL certificate properties in the
Server.xmlfile.
8. Testing:
- To test WebRTC streaming, use a WebRTC-compatible client or browser. For example, you can use a WebRTC-enabled browser, such as Google Chrome or Mozilla Firefox, to connect to your Wowza server.
Note:
This is a basic example, and your specific use case may require additional configuration and customization. Always refer to the official Wowza documentation for the version you are using for the most accurate and up-to-date information.
Remember to secure your WebRTC connections, especially if you are deploying in a production environment. Additionally, check for any changes or updates to the Wowza Streaming Engine documentation that may affect your configuration.