WebRTC publisher for Unreal Media Server. A password is required to be configured using the publishToken
config.
<div class="flex flex-col w-full">
<div id="unrealmedia-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#unrealmedia-publisher", {
"peakmeter": {},
"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
},
"src": [
{
"appName": "webrtc",
"publisher": true,
"src": "livestream",
"type": "application/webrtc"
}
],
"token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});
</script>