Compare commits
2 Commits
8d5320e4e5
...
cc95fc5829
| Author | SHA1 | Date | |
|---|---|---|---|
| cc95fc5829 | |||
| ce7b8a1ccd |
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/echo.html">Echo</a></li>
|
<li><a href="/echo.html">Echo</a></li>
|
||||||
|
<li><a href="/webrtc.html">WebRTC</a></li>
|
||||||
<li><a href="/wfc.html">WFC</a></li>
|
<li><a href="/wfc.html">WFC</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
20
priv/static/js/ts/webrtc.ts
Normal file
20
priv/static/js/ts/webrtc.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* webrtc page script
|
||||||
|
*
|
||||||
|
* Author: Peter Harpending <peterharpending@qpq.swiss>
|
||||||
|
* Date: 2026-02-04
|
||||||
|
* Copyright: Copyright (c) 2026 QPQ AG
|
||||||
|
*
|
||||||
|
* Reference: https://git.qpq.swiss/QPQ-AG/research-megadoc/src/commit/c7c4592d4b21ad120145ef63334471a1a7ec1e60/paste/2026-02/grok-webrtc.html
|
||||||
|
*
|
||||||
|
* @module
|
||||||
|
*/
|
||||||
|
|
||||||
|
main();
|
||||||
|
|
||||||
|
async function
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
let pc: RTCPeerConnection = new RTCPeerConnection();
|
||||||
|
}
|
||||||
|
|
||||||
31
priv/static/webrtc.html
Normal file
31
priv/static/webrtc.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>FEWD: voice chat demo</title>
|
||||||
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
|
<div class="content">
|
||||||
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<h1 class="content-title">FEWD: webrtc demo</h1>
|
||||||
|
|
||||||
|
<div id="init">
|
||||||
|
<label for="initName">username:</label>
|
||||||
|
<input autofocus id="initName" type="text"></input>
|
||||||
|
<button id="initSubmit">Join</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="peers" hidden>
|
||||||
|
Peers
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/js/dist/webrtc.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user