WebRTC publisher for Unreal Media Server. A password is required to be configured using the publishToken
config.
<div class="flex w-full h-auto my-auto">
<div id="unrealmedia-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("unrealmedia-publisher").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"plugins": {
"../../js/webrtcpeakmeter.js": {},
"../../js/webrtcpublisher.js": {
"applicationName": "webrtc_publish",
"autoStartDevice": true,
"preferredCodecs": {
"audio": {
"codec": "opus"
},
"video": {
"codec": "H264"
}
},
"publisher": true,
"server": "unrealmedia",
"serverURL": "127.0.0.1:5119",
"toggleScreen": true,
"unrealmedia": {
"publicIp": "127.0.0.1",
"publishToken": "livestream",
"singlePort": true,
"transportTcp": false
},
"wsSecure": false
}
},
"sources": [
{
"appName": "webrtc",
"file": "livestream",
"live": true,
"publisher": true,
"type": "mp4"
}
],
"width": "100%"
});
</script>