mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
✨ feat: Add streaming support (#125)
This adds: - [x] Keyboard and mouse handling on the frontend - [x] Video and audio streaming from the backend to the frontend - [x] Input server that works with Websockets Update - 17/11 - [ ] Master docker container to run this - [ ] Steam runtime - [ ] Entrypoint.sh --------- Co-authored-by: Kristian Ollikainen <14197772+DatCaptainHorse@users.noreply.github.com> Co-authored-by: Kristian Ollikainen <DatCaptainHorse@users.noreply.github.com>
This commit is contained in:
15
packages/moq/karp/catalog/track.ts
Normal file
15
packages/moq/karp/catalog/track.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export type GroupOrder = "desc" | "asc"
|
||||
|
||||
export interface Track {
|
||||
name: string
|
||||
priority: number
|
||||
}
|
||||
|
||||
export function decodeTrack(o: unknown): o is Track {
|
||||
if (typeof o !== "object" || o === null) return false
|
||||
|
||||
const obj = o as Partial<Track>
|
||||
if (typeof obj.name !== "string") return false
|
||||
if (typeof obj.priority !== "number") return false
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user