scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Turn on the torch

Open pierrre opened this issue 1 year ago • 3 comments

  • [x] I have checked that a similar feature request does not already exist.

Is your feature request related to a problem? Please describe. I tried to turn on the torch while using srccpy to display my camera. But Android doesn't allow to turn on the torch, because the camera is "in use".

srccpr should have a flag that allows to turn on the torch

pierrre avatar Feb 14 '24 21:02 pierrre

https://developer.android.com/reference/android/hardware/camera2/CameraManager#setTorchMode(java.lang.String,%20boolean)

I guess we should bind a shortcut to switch the torch on/off when video source is camera.

PR welcome.

rom1v avatar Feb 14 '24 22:02 rom1v

I'd like flashlight option present in the scrcpy. Currently there is no way to enable flashlight when camera is used by scrcpy.

ivanstepanovftw avatar Aug 13 '24 01:08 ivanstepanovftw