Company Christmas Holidays
North American Headquarters in Miami, USA: Dec 25, 2015, Jan 1st 2016
European Headquarters in Muenster, Germany: Dec 21, 2015 until Jan 03rd 2016
Limited support is available during this period.
We at PROVISIO wish you Merry Christmas and a Happy New Year!


Support Request: Screen saver activation


we are developing a windows forms application. At the moment, we have 2 SiteKiosk licenses.
I've configured the SiteKiosk "scrensaver" to perform the logout (so it will recycle our windows application) after 5 minutes of inactivity.
I've also configured the webcam motion-detection, and everything is working fine.
Our application also implements WebRTC for video communication. (the customer at the kiosk can establish a bi-directional video-session with a remote employee).
Now... my need is to enable the "SiteKiosk motion-detection" only if our application is running the WebRTC video-session.
In other words: if the webcam is not in use, i want SiteKiosk to ignore the motion-detection.
Is there any way to accomplish this?

Thank you

Réponse: (8)

Re: Screen saver activation 17/10/2019 13:44

I am sorry but this is not possible because the devices that are used to deactivate the screen saver (besides keyboard and mouse/touch input) will be set in the SiteKiosk configuration that doesn’t change during runtime.
Furthermore the Webcam you use as Webcam motion sensor device must be exclusively available and cannot be used for other things at the same time. Therefore you would need 2 Webcams with that solution.

Instead, you can consider using a COM or USB mat that can also be configured. This ensures that the screen saver is only deactivated when someone is really in front of the device (and thus on the mat).
And all you need is 1 webcam that can be used for WebRTC.

Michael Olbrich
Re: Screen saver activation 17/10/2019 16:30
Hello Michael,
thank you for the prompt repy.
I will submit the usb-mat option to our customer.
Beside that, suppose i will leave the "standard" behaviour: screensaver with just mouse/keyboard interaction.
How can i prevent it during a WebRTC session?
I've tried with:

SetThreadExecutionState(ExecutionState.EsDisplayRequired | ExecutionState.EsContinuous);

but SiteKiosk will logout anyway.

Thank you
Re: Screen saver activation 17/10/2019 16:55

You may check calling this SiteKiosk Object Model method in regular intervals when the WebRTC session is running:
This method can also be called when SiteKiosk is active in order to prevent the screensaver from being launched.

But note that this is the classic Object Model for web pages IE based skins.

For how using classic Object Model in Chrome Browser skin you should check this:

Note that you need to add the URL you use SiteKiosk Object Model on to the “URLs with SiteKiosk Object Model permission”:

Michael Olbrich
Re: Screen saver activation 17/10/2019 17:28
I've read the linked docs.. and i'm pretty confused.
We don't have any browser, or page running. The kiosk will only run our windows-application.

Our SiteKiosks are configured as:
Start Page = Start Screen
Browser-Engine = Chrome Browser

When the system starts, it automatically opens our application, and there are our windows forms on both screens.

How can I make the call to the object model? Our application is a .NET windows-forms writte in C#.

Thank you
Re: Screen saver activation 17/10/2019 17:36
I think I should refer to:
But i cannot install SiteKiosk on my dev workstation. How can I import the COM objects to my VisualStudio project? Which DLLs should i copy from the SiteKiosk installation?
Pages (2): [1] 2 Next »