This commit is contained in:
Nadar
2026-01-12 10:22:56 +03:00
parent 12ce381abd
commit d08b011596
5 changed files with 17 additions and 2 deletions

View File

@@ -317,7 +317,7 @@ export const useMediasoup = createSharedComposable(() => {
if (!device.value)
return
const stream = await getShareStream()
const stream = await getShareStream(preferences.shareFps.value)
const track = stream.getVideoTracks()[0]

View File

@@ -19,6 +19,8 @@ export const usePreferences = createGlobalState(() => {
const noiseSuppression = useLocalStorage('NOISE_SUPPRESSION', true)
const echoCancellation = useLocalStorage('ECHO_CANCELLATION', true)
const shareFps = useLocalStorage('SHARE_FPS', 30)
const toggleInputHotkey = ref<SyncedPreferences['toggleInputHotkey']>('')
const toggleOutputHotkey = ref<SyncedPreferences['toggleOutputHotkey']>('')
@@ -57,6 +59,7 @@ export const usePreferences = createGlobalState(() => {
autoGainControl,
noiseSuppression,
echoCancellation,
shareFps,
toggleInputHotkey,
toggleOutputHotkey,
inputDeviceExist,