WebRTC Subscriber configuration for Wowza Video as scale.
OBS RTMP Encoder to WebRTC subscribing is supported if Browser based WebRTC publishing is not desired. See the Millicast Encoder Settings documentation for setting up the encoder.
A subcriber token is desirable to restrict WebRTC plaback. That can be used to configure the subToken
config. Wowza Video console provides the generated subscriber token.
{
"wowzavideo": {
"subToken": ""
}
}
:::json
{
"rtcsubscriber": {
"wowzavideo": {
"subToken": ""
}
}
}
<div class="flex w-full h-auto my-auto">
<video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="wowzavideo-subscriber"></video>
</div>
<script type="text/javascript">
var player = videojs("wowzavideo-subscriber", {
"live": true,
"plugins": {
"rtcsubscriber": {
"server": "wowza-video",
"wowzavideo": {
"subToken": "b23ebffd67a92feff751983ad91c4ddfd83285b5a3b899cffbab1d28275dce44"
}
}
},
"sources": [
{
"src": "C6Lx6ku6FEXgKtt",
"type": "application/webrtc"
}
]
});
</script>