786579a7d8
Add Authorization Bearer header to all fetch calls (apps, stream start). Handle 401 responses by clearing token and redirecting to login. Pass stream_token from the stream start response through to the WebTransport URL as a query parameter for proxy authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
665 B
Svelte
32 lines
665 B
Svelte
<script lang="ts">
|
|
import Stream from './Stream.svelte';
|
|
import { streamStore } from '../stores/streamStore.svelte';
|
|
|
|
$: url = streamStore.Url;
|
|
$: certHash = streamStore.CertHash;
|
|
$: width = streamStore.Width;
|
|
$: height = streamStore.Height;
|
|
$: streamToken = streamStore.StreamToken;
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>Stream</title>
|
|
<meta name="description" content="Streaming game" />
|
|
</svelte:head>
|
|
|
|
<Stream {url} {certHash} {width} {height} {streamToken} />
|
|
|
|
<style>
|
|
section {
|
|
min-height: 100vh;
|
|
min-width: 100vw;
|
|
}
|
|
/*section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex: 0.6;
|
|
}*/
|
|
</style>
|