shareFps
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user