frontend: improve launch UI and refactor stream to new page

This commit is contained in:
2025-08-08 00:18:38 -06:00
parent 2b5b6f190d
commit 31481c6812
18 changed files with 270 additions and 13887 deletions
+26
View File
@@ -0,0 +1,26 @@
<script lang="ts">
import { onMount } from 'svelte';
import { streamUrl } from './stream';
interface Props {
url: string;
certHash: Array<number>;
}
let { url, certHash }: Props = $props();
let loading = $state(true);
async function startStream() {
console.log(`Connecting to stream at ${url} with cert_hash ${certHash}`);
await streamUrl(url, certHash);
}
onMount(async () => {
await startStream();
});
</script>
<canvas id="gamestream-canvas" width="1280" height="720"></canvas>
<style>
</style>