Wowza Streaming Engine™ media server software version 4.7.7 and later supports WebRTC streaming, however, we recommend that you update to version 4.8.5 and later to capitalize on expanded functionality and enhancements to publisher reliability. Wowza Streaming Engine can ingest source WebRTC audio and video content and deliver it to supporting players like Wowza Flowplayer, or it can transcode WebRTC to other streaming protocols, including HLS, MPEG-DASH, RTMP, and RTSP. To record a WebRTC stream with Wowza Streaming Engine, it must use the H.264 video codec. If your WebRTC source isn't H.264, you must transcode it and record the transcoded rendition.
To record a live WebRTC stream, do the following:
- Install the LiveStreamRecorder module. For more information, see Record live streams in Wowza Streaming Engine.
- Open [install-dir]/conf/[application-name]/Application.xml in a text editor, and add the following properties to the end of the <StreamRecorder>/<Properties> container. Note that these properties must be used together. Don't configure one without configuring the other, too.
Name Type Description streamRecorderDefaultAudioSearchPosition Boolean Set to false to enable the LiveStreamRecorder module to search the packets and identify the nearest audio packet to a keyframe. This keeps audio and video synchronized in the recording. If the audio and video are interweaved and no synchronization is needed, set to true. streamRecorderSkipKeyFrameUntilAudioTimeout Integer The maximum length of time, in milliseconds, that you want to allow the LiveStreamRecorder to search for audio packets before you start recording. The recording will start as soon as an audio packet is found or when the specified timeout value is reached. The default value, 10000, starts recording after 10 seconds. Your recording may not include the first few seconds on the stream.
- In Wowza Streaming Engine Manager, enable the Transcoder feature and configure the Transrate (Default) template Encoding preset to passthrough the incoming video and convert the incoming audio to AAC. For more information, see Set up and run Transcoder in Wowza Streaming Engine.
- Connect your video source to Wowza Streaming Engine. Both your source stream and your transcoded stream with AAC audio will be recorded, but only the transcoded stream will be usable.