Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6460349fc7 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cheating-daddy",
|
"name": "cheating-daddy",
|
||||||
"productName": "cheating-daddy",
|
"productName": "cheating-daddy",
|
||||||
"version": "0.5.6",
|
"version": "0.5.7",
|
||||||
"description": "cheating daddy",
|
"description": "cheating daddy",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+3
-6
@@ -33,14 +33,11 @@ function createWindow(sendToRenderer, geminiSessionRef) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { session, desktopCapturer } = require('electron');
|
const { session, desktopCapturer } = require('electron');
|
||||||
|
|
||||||
// Setup display media request handler for screen capture
|
|
||||||
// Use system picker on all platforms to let user choose screen/window and audio
|
|
||||||
session.defaultSession.setDisplayMediaRequestHandler(
|
session.defaultSession.setDisplayMediaRequestHandler(
|
||||||
(request, callback) => {
|
(request, callback) => {
|
||||||
// Don't call callback - let system picker handle the selection
|
desktopCapturer.getSources({ types: ['screen'] }).then(sources => {
|
||||||
// The system will call callback with user's choice
|
callback({ video: sources[0], audio: 'loopback' });
|
||||||
console.log('Showing system screen picker dialog...');
|
});
|
||||||
},
|
},
|
||||||
{ useSystemPicker: true }
|
{ useSystemPicker: true }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user