frontend: improve launch UI and refactor stream to new page
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user