Commit Graph

38 Commits

Author SHA1 Message Date
Denis Barbaron
2f54e40206 Upgrading STF for security reasons (#813)
* Upgrading STF for security reasons

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update semaphore files

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* upgrading STF for security reasons v2

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update yarn.lock file

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-11-22 11:41:20 +01:00
Denis Barbaron
d9e59446f3 add frame rate management (#558)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2022-08-03 13:48:51 +02:00
Karol Wrótniak
e60bcee3fc Revert "Fix adbkit API invocations (#524)" (#528)
This reverts commit 6f09708304.
2022-05-12 10:08:47 +02:00
Karol Wrótniak
6f09708304 Fix adbkit API invocations (#524)
Update Adbkit to 3.2.3
2022-05-05 18:43:22 +02:00
Mark Omarov
34f8bce292 🐛 Fix: Increase PID retrieval timeout for edge-cases (#419)
Some devices (Pixel 4XL) need more time to retrieve PID, in such cases when the retrieval failed - the whole stream is shutting down, therefore, connection with Minicap is lost which leads to constant empty screen on the Web UI.

Signed-off-by: Mark Omarov <mark.omarov.work@gmail.com>

Co-authored-by: Mark Omarov <mark.omarov.work@gmail.com>
2022-02-01 23:36:06 +01:00
Crepieux Pierre
4a8787891d Fix code style
Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-06-01 09:46:35 +02:00
Crepieux Pierre
bb1c20d1f7 Introduce support for new VM based minicap to support Android 12
This commit introduce a new option to use a new minicap
implementation by specifying --screen-grabber or the env
variable SCREEN_GRABBER. The current native minicap is the default
and is refered as 'minicap-bin'. The new minicap which is packaged
in an apk is usable with 'minicap-apk' and will be used as a
fallback.
At the moment, this apk is expected to be included in
minicap-prebuilt node package at this location
minicap-prebuilt/prebuilt/noarch/minicap.apk.

STFService.apk has also been updated to take into account Android 12

Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-05-31 18:00:28 +02:00
Karol Wrótniak
53acc928f5 Revert all adbkit upgrades (#207) 2021-03-10 19:22:32 +01:00
Karol Wrótniak
5dfdd9ac63 Fix adb invocations (#202) 2021-03-10 14:50:33 +01:00
Karol Wrótniak
86bc95e72a Add namespace to npm dependencies (#28) 2020-07-05 12:31:15 +02:00
Simo Kinnunen
5e9aa427e9 The screen websocket now sends ping messages every now and then, so that it won't get caught by nginx's proxy_read_timeout if the screen is off or not moving. Previously, nginx may have decided to kill the connection after a period of no activity. 2017-01-25 17:46:23 +09:00
Simo Kinnunen
3d74cb48ab Make jpeg quality configurable. 2016-11-28 17:22:24 +09:00
Marc Bachmann
bac74538c9 chore(package): update uuid to version 3.0.0 2016-11-23 03:21:32 +01:00
Gunther Brunner
711ab4a8e5 Updated npm dependencies.
ProtobufJS and Bluebird require further work.
2016-08-03 20:08:30 +09:00
Gunther Brunner
434f63b3a9 Fix all lib/ files with ESLint rules with 0 errors. 2016-01-19 20:52:38 +09:00
Simo Kinnunen
9d20484dcb Limit VNC size by default. 2015-09-15 04:25:21 +09:00
Simo Kinnunen
2ee767ffed Don't send manual onStart() if frameproducer's not ready. 2015-09-14 20:33:29 +09:00
Simo Kinnunen
797e97e7c7 Tell new broadcast sessions what the current state is, just in case they
were added in the middle of an existing session.
2015-09-14 19:34:06 +09:00
Simo Kinnunen
792713d415 VNC screen is visible (w/ RAW encoding). Size of VNC screen is still
hardcoded, preventing real use.
2015-09-14 18:00:17 +09:00
Simo Kinnunen
361bf9caea Move utility plugins into their own folder. They don't go into the support folder because they're not standalone units and require interaction with the main units. Further refactoring pending. 2015-07-28 15:59:02 +09:00
Simo Kinnunen
1d15e8e3d7 Since minicap is quite complicated and gets restarted often, perhaps it's best if we let changes fully propagate before restarting it again. There was a problem with someone changing rotation so quickly that pid retrieval failed, which means that stopping was sort of iffy, which then caused various problems. The pid retrieval process was improved in 5a77d300dc. 2015-07-21 15:42:58 +09:00
Simo Kinnunen
5a77d300dc Read minicap pid from shell output. Should be more reliable for quick restarts. 2015-07-21 15:34:58 +09:00
Simo Kinnunen
dc07777829 Hopefully get rid of FrameProducer._stop() timeouts. Doesn't reproduce locally. 2015-07-15 14:15:05 +09:00
Simo Kinnunen
9f627cb129 Hopefully fix occasional errors when trying to send an initial banner to a frame client. After looking through ws' source, the most likely reason seems to be that the websocket is in CLOSING state. Even if not, we should get a bit more useful log output this time. 2015-07-01 12:49:12 +09:00
Simo Kinnunen
d806d4fe54 EventEmitter constructor was not being called in many places. It did work due to the EventEmitter3 constructor being empty, but we can't rely on that. 2015-06-02 13:26:43 +09:00
Simo Kinnunen
c1357ac540 Try to read frames immediately instead of waiting for a readable event. We may already have received it before. 2015-04-30 20:59:38 +09:00
Simo Kinnunen
5bb05f52f6 Move some screen utilities to the global util directory so that they can be used for other things too. 2015-04-30 13:41:32 +09:00
Simo Kinnunen
105795bec7 Give open device ports their own options. Preparing for future refactor. 2015-04-29 16:38:03 +09:00
Simo Kinnunen
2391d249e0 Make screenshots work again. 2015-04-29 13:10:46 +09:00
Simo Kinnunen
2123a475e3 Don't allow minicap to fail more than 3 times in 10s. 2015-04-27 16:10:41 +09:00
Simo Kinnunen
688ddda713 Fix unexpected minicap death during start causing a TimeoutError, causing the licecycle to end unnecessarily. Now it will just try again like it should have from the start. 2015-04-27 11:48:42 +09:00
Simo Kinnunen
9ea0839b0b Rotate canvas image on client side when necessary. Minicap now always returns the image in upright position for newer devices. 2015-04-23 14:45:10 +09:00
Simo Kinnunen
7202f102d9 Remove duplicate code. 2015-04-23 09:57:09 +09:00
Simo Kinnunen
51bad5ec59 Oops, mistakenly left a console.log behind. 2015-04-17 17:29:34 +09:00
Simo Kinnunen
feb77c4396 Don't read new frames before the previous frame has been sent. 2015-04-17 17:21:38 +09:00
Simo Kinnunen
07fb3b530c Allow minicap to skip frames when necessary. 2015-04-16 19:50:38 +09:00
Simo Kinnunen
88162e8a33 Restart FrameProducer if it dies unexpectedly. 2015-04-16 16:35:36 +09:00
Simo Kinnunen
95e9dd0b82 Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death. 2015-04-15 18:55:46 +09:00