настройки демонстрации экрана
This commit is contained in:
@@ -9,12 +9,11 @@ export const useDevices = createGlobalState(() => {
|
||||
audioOutputs,
|
||||
} = useDevicesList()
|
||||
|
||||
async function getShareStream(fps = 30) {
|
||||
async function getShareStream(fps = 30, resolution = 1080) {
|
||||
return navigator.mediaDevices.getDisplayMedia({
|
||||
audio: false,
|
||||
video: {
|
||||
width: { max: 1920 },
|
||||
height: { max: 1080 },
|
||||
height: { max: resolution },
|
||||
displaySurface: 'monitor',
|
||||
frameRate: { ideal: fps, max: fps },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user