I am working on a webrtc app & would like to know if there is a way to capture lock screen and allow user login/logout of windows & Mac systems.Right now I run it as an Application from User context & it doesn't have privileges to access lock screen. Any insights here would be of much helpful to me.
Related
We have a Kiosk machine configured with Windows 11 IoT Enterprise running in Kiosk mode and everything is good. Windows creates specific Kiosk user to run in Kiosk mode which will start Edge browser and load our app. The app needs access to the webcam attached to the Kiosk so that it can do QR code scanning and face recognition.
The issue we are having is that every time the app needs access to the webcam it asks the users permission if they would like to Allow access to webcam (through a small pop-up on the top left hand side corner of the browser). The user can either 'Allow' or 'Deny' access.
Ideally, we don't want our end users to see this pop-up as we would like to 'force' allow the app access to the web cam without keep asking permission from the end users (it just does not add up to a great user experience in a Kiosk mode).
We have searched and tried few ideas we found online about changing REG keys and Local Policy settings but non of them seem to work when Windows starts in 'Kiosk' mode. They work for normal Windows users (like local users or admin users) but not for the Kiosk user.
Any help, suggestions, recommendations would be appreciated.
Found the solution. I hope this will help anyone else facing the same issue.
I had to create new key in the Windows 11 IoT registry under the following structure:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\VideoCatpureAllowedUrls
After you create the key above, I then added new String value of '1' so the Reg path looks like this"
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\VideoCatpureAllowedUrls\1
Then I double clicked on the 1 and added the value of my app URL which needs access to the web cam. For example:
https://www.myapp.com/
Restart my Windows 11 IoT which booted in Kiosk mode and I was able to access the web cam via my web app without getting the popup asking me to 'Allow' or 'Deny' access.
this site helped me alot
Is there a Win32 API for Windows or a Cocoa API for Mac which detects video/audio playback?
I'm developing a desktop application that needs to be aware of the user's activity on the computer. When the app is running, if the user is actively using his computer, the app should stay dormant. If the user is away from the computer for a certain period of time, then the app should run some logic.
There is a way to detect user activity via keyboard/mouse interaction. However, if the user is passively engaged (e.g. watching a video or listening to music) without any keyboard/mouse action, then I have no way of knowing.
There is a similar question but no answer.
Video playback detection with Win32 API?
Any help would be much appreciated. Thank you!
I'm trying to create a remote desktop app.
Everything is working great except I can't find a way to capture the windows lock screen to allow login from remote.
I'm using electron and getUserMedia which will show the lock screen on macOS but just hangs with a still image on Windows until the screen is unlocked.
Is there any way to capture the lock screen on windows using the built in getUserMedia or ffmpeg?
If not do you have any other suggestions of ways to capture? I don't need high framerate on the lock screen.
I facet the same problem...
Maybe it's necessary to run electron app using System privileges.
do you have resolved in some way?
Since Windows 10 doesn't support Mirror drivers, how do I use Desktop Duplication API to capture console at all times i.e. start with logon window, then user's desktop (after the user logs in) and also the lock screen?
Detect desktop Switch event then SetThreadDesktop on the thread that is capturing and make sure you're running as SYSTEM user.
I found when I lock my phone screen and unlock,The xaml page seems to be reload.This is not the point,the point is the whole program I wrote is just like fresh restart.It is true?What can I do with this issue?
You should read the Execution Model Overview. Your app is getting Tombstoned. You need to handle this.
An application in the foreground can continue to run when the phone screen is locked by setting the PhoneApplicationService.ApplicationIdleDetectionMode property.
By setting up your application to run when the phone screen is locked, a user is able to access the application quickly upon unlock. However, when your application runs under a locked screen, it could consume power outside of the user's control. For this reason, your application must minimize power usage when running under a locked screen