switched to try a different function for wayland stream control
This commit is contained in:
parent
dfe30d2eeb
commit
d717e9de5d
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ export function registerScreenShareHandler() {
|
|||
const video = data[0];
|
||||
if (video)
|
||||
await request.frame.executeJavaScript(
|
||||
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([data])}, true)`
|
||||
`Vesktop.Components.ScreenShare.StreamSettings(${JSON.stringify([data])}, true)`
|
||||
);
|
||||
|
||||
callback(video ? { video: sources[0] } : {});
|
||||
|
|
|
@ -116,7 +116,7 @@ function ScreenPicker({ screens, chooseScreen }: { screens: Source[]; chooseScre
|
|||
);
|
||||
}
|
||||
|
||||
function StreamSettings({
|
||||
export function StreamSettings({
|
||||
source,
|
||||
settings,
|
||||
setSettings
|
||||
|
|
Reference in a new issue