WebRTC subscriber for Unreal Media Server. A security token can be configured for the connection using the secureToken
config.
<div class="flex w-full h-auto my-auto">
<div id="unrealmedia-subscriber" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("unrealmedia-subscriber").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"plugins": {
"../../js/webrtcsubscriber.js": {}
},
"sources": [
{
"appName": "webrtc",
"file": "livestream",
"live": true,
"publisher": false,
"type": "mp4"
},
{
"src": "http://rtc.electroteque.org:1935/webrtc/myStream_360p/playlist.m3u8",
"type": "application/x-mpegurl"
}
],
"subscriber": {
"applicationName": "webrtc_playnow",
"server": "unrealmedia",
"serverURL": "127.0.0.1:5119",
"unrealmedia": {
"publicIp": "127.0.0.1",
"singlePort": true,
"transportTcp": false
},
"wsSecure": false
},
"width": "100%"
});
</script>