]
}
WebRTC Subscriber configuration for Wowza Media Server. Wowza Media Developer and full licence works with WebRTC.
Configured is a custom subscribe token that is verified with the custom Wowza webrtc provider module using a configured shared secret.
<div class="flex w-full h-auto my-auto">
<div id="wowza-subscriber" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("wowza-subscriber").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"plugins": {
"../../js/webrtcsubscriber-8.20.0.js": {}
},
"sources": [
{
"appName": "webrtc",
"file": "C6Lx6ku6FEXgKtt",
"live": true,
"publisher": false,
"type": "mp4"
},
{
"src": "http://rtc.electroteque.org:1935/webrtc/myStream_360p/playlist.m3u8",
"type": "application/x-mpegurl"
}
],
"subscriber": {
"applicationName": "webrtc",
"debug": true,
"server": "wowza",
"serverURL": "rtc.electroteque.org",
"subscribeToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ3ZWJydGMiLCJpYXQiOjE2MzczMzAyNTksImV4cCI6MTY2ODg2NjI1OSwiYXVkIjoid3d3LmV4YW1wbGUuY29tIiwic3ViIjoianJvY2tldEBleGFtcGxlLmNvbSIsInN0cmVhbU5hbWUiOiJDNkx4Nmt1NkZFWGdLdHQifQ.4_38rdgyqWabGvoV6WZREjrqevVeGIgCKK7xOknwGx4",
"userData": {
"param1": "value1"
}
},
"width": "100%"
});
</script>