Maximize FOV on video call
The field of view on video calls is very narrow, resulting in a transmitted video that is highly "zoomed in".
This increases the field of view using three approaches;
- Use 4:3 video aspect ratio to prevent cropping to 16:9
- Disable EIS (removes the buffer around the video)
- Zoom out
The aspect ratio will affect devices universally, since as far as I can tell, all camera sensors seem to have a 4:3 native aspect ratio. The other two will apply on a sensor by sensor basis. Some phones have a mixture of available zoom ratios, and support for EIS or OIS (where OIS is available, EIS is disabled).
Naturally, there will be tradeoffs for each of the three causes of cropping;
User may have a preference for a 16:9 ratio. Holding the device in user's hand will result in a jittery video without stabilization. Changing the zoom ratio could cause the HAL to select a different sensor with different characteristics, for example, the main camera on a Pixel 6 [/Pro] has OIS, but reducing the zoom level to lower than 1:1 will cause it to switch to the wide angle lens, which does not have OIS. Consequently, it may be preferable for each of these configuration changes to be user-controlled.
Access to the camera on talk-android is through webrtc, which unfortunately, does not provide means of user control for EIS or zoom ratio, however, others have coerced it into allowing settings; https://stackoverflow.com/questions/48598752/android-how-to-turn-on-flashlight-using-webrtc-android-io-pristine-libjingle1 Unfortunately, this approach is a little bit hacky since it requires duplication of some of webrtc.
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/2297-talk.apk
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.
I don't saw this before writing my comment . I'll a look next week.
Hi @timkrueger did you have time to review this ?
Hi @timkrueger did you have time to review this ?
I also liked to have it. But as I wrote in the corresponding issue https://github.com/nextcloud/talk-android/issues/2052#issuecomment-1232930509 the is work to do.
There is a bug that causes the preview to be cropped to the screen ratio rather than showing the full preview, introduced in this commit; https://github.com/nextcloud/talk-android/commit/892ffe87dd45a61e8e84769af3f18f4e89ea08e2
... added fix for this to PR by changing the preview size to 4:3 ratio in dimens.xml
Codacy
Lint
| Type | master | PR |
| Warnings | 112 | 112 |
| Errors | 1 | 1 |
SpotBugs
| Category | Base | New |
|---|---|---|
| Bad practice | 4 | 4 |
| Correctness | 75 | 77 |
| Dodgy code | 315 | 317 |
| Experimental | 2 | 2 |
| Internationalization | 9 | 9 |
| Malicious code vulnerability | 53 | 53 |
| Performance | 23 | 24 |
| Security | 2 | 2 |
| Total | 483 | 488 |
SpotBugs increased!
org.jetbrains.annotations.NotNull is used. Please use androidx.annotation.NonNull instead.
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/2297-talk.apk
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/2297-talk.apk
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.
Hi all, any status on getting this merged ? @mahibi anyway you can you review this when you have time i don't think we've heard from @timkrueger in a while