mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
✨ 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:
33
packages/moq/common/settings.ts
Normal file
33
packages/moq/common/settings.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user