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 for Unreal Media Server. A password is required to be configured using the publishToken
config.
<div class="flex w-full">
<div id="unrealmedia-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#unrealmedia-publisher", {
"clip": {
"live": true,
"sources": [
{
"src": "livestream",
"type": "application/webrtc"
}
]
},
"rtc": {
"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
},
"share": false
});
</script>