mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-26 19:11:11 +08:00
47 lines
819 B
HTML
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> |