S
S
Sergey Sokolov2020-09-18 23:06:32
linux
Sergey Sokolov, 2020-09-18 23:06:32

How to use webcam from browser in kiosk mode?

At the exhibition there is a computer with Ubuntu, a webcam, a large screen. A simple web application records a short video once a minute.

I want to make sure that when the power is turned on, everything starts by itself.

Started a user without a password with autologin. Autorun executes a bash script that waits 10 seconds for the network to be established, and launches a browser from the command line. firefox -kiosk https://site/page.html

What did not work:

  1. in this version, the browser did not receive a “focus” from the user, there was no click. Therefore, the webcam does not start until you click;
  2. decoratively ugly: FireFox draws an icon from top to middle indicating that FireFox is using a webcam.


How to fix these two points?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kharchenko, 2020-09-18
@sergiks

1. xdotool click 1
2. Look here , maybe something will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question