feat: Host a relay on Hetzner (#114)

We are hosting a [MoQ](https://quic.video) relay on a remote (bare
metal) server on Hetzner

With a lot of help from @victorpahuus
This commit is contained in:
Wanjohi
2024-09-26 21:34:42 +03:00
committed by GitHub
parent c4a6895726
commit bae089e223
74 changed files with 7107 additions and 96 deletions

View File

@@ -0,0 +1,33 @@
// MediaTrackSettings can represent both audio and video, which means a LOT of possibly undefined properties.
// This is a fork of the MediaTrackSettings interface with properties required for audio or vidfeo.
export interface AudioTrackSettings {
deviceId: string
groupId: string
autoGainControl: boolean
channelCount: number
echoCancellation: boolean
noiseSuppression: boolean
sampleRate: number
sampleSize: number
}
export interface VideoTrackSettings {
deviceId: string
groupId: string
aspectRatio: number
facingMode: "user" | "environment" | "left" | "right"
frameRate: number
height: number
resizeMode: "none" | "crop-and-scale"
width: number
}
export function isAudioTrackSettings(settings: MediaTrackSettings): settings is AudioTrackSettings {
return "sampleRate" in settings
}
export function isVideoTrackSettings(settings: MediaTrackSettings): settings is VideoTrackSettings {
return "width" in settings
}