Note: Not a live demo, server configuration is just for example. For live working example try the Dolby.io Publisher and Subscriber example. Or AWS Kinesis Publisher and Subscriber example.
WebRTC Publisher configuration for Wowza Video as scale. The publish token supplied by Wowza is required to be configured.
Wowza Video supports WebRTC data channels which can be enabled with dataChannel
and channelName
The Wowza Video as scale is configured to play back this publish stream.
Preferred Codecs for Wowza video is configured with the codec
config which defaults to h264. This can be set to VP9. In the future AV1 Codec in supported browsers can be used. See the AV1 WebRTC Millicast post regarding to AV1.
OBS RTMP Encoder to WebRTC subscribing is supported. See the OBS For Real Time Streams documentation for downloading and setting up the encoder. The Wowza Video subscriber, can be used to play back the RTMP stream as WebRTC.
Configured is the publish security token provided by the console.
{
"wowzavideo": {
"publishToken": "",
"codec": "h264"
}
}
<div class="flex w-full">
<div id="wowzavideo-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#wowzavideo-publisher", {
"clip": {
"live": true,
"sources": [
{
"src": "C6Lx6ku6FEXgKtt",
"type": "application/webrtc"
}
]
},
"rtc": {
"autoStartDevice": true,
"publisher": true,
"server": "wowza-video",
"toggleScreen": true
},
"share": false,
"wowzavideo": {
"codec": "h264",
"publishToken": "31ae7f65a04762b5e44b56b0eb2b2cd6dae169c05d13955af09c526399378592"
}
});
</script>