Files
donut/static/index.html
Leandro Moreira 199c23e9fd add draft for rtmp
2024-05-12 15:05:35 -03:00

47 lines
819 B
HTML

<html>
<head>
<title>donut</title>
<script src="demo.js"></script>
<style src="demo.css"></style>
</head>
<body>
<h1>Remote streaming</h1>
<b> URL </b>
<input type="text" id="stream-url" value="srt://srt:40052"> <br />
<b> ID </b>
<input type="text" id="stream-id" value="stream-id" /> <br />
<button onclick="onConnect()"> Connect </button>
<h1>Video</h1>
<div id="remoteVideos"></div>
<h1>Metadata</h1>
<div id="metadata"></div>
<h1>Logs</h1>
<div id="log"></div>
</body>
<script>
function docReady(fn) {
if (document.readyState === "complete" || document.readyState === "interactive") {
setTimeout(fn, 1);
} else {
document.addEventListener("DOMContentLoaded", fn);
}
}
docReady(function () {
window.onConnect = () => {
window.startSession();
}
});
</script>
</html>