Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Sharing not working Motorola Neo 30 #1102

Open
Osaka78-on-GitHub opened this issue Dec 31, 2023 · 6 comments
Open

Screen Sharing not working Motorola Neo 30 #1102

Osaka78-on-GitHub opened this issue Dec 31, 2023 · 6 comments

Comments

@Osaka78-on-GitHub
Copy link

Camera sharing works fine in Android app, but not screen sharing. Could you please advise troubleshooting steps? Thanks Steve

Android 12

@steveseguin
Copy link
Owner

I've pushed an updated version of the mobile app to the Google Play store the other day.

I doubt my changes fixed it, but I tried a few ideas that might work.

If you denied any permissions for the app, it might cause issues. Android might require a permission to capture the screen; it might also need "Draw over screen" permissions.

I'm testing on Android 13 myself, and while I believe it should work with Android 12, if you can update to Android 13, it might help

Does the screen share not work at all? Or does it just stop after a few minutes?

@Osaka78-on-GitHub
Copy link
Author

Thanks Steve.

Updated to VDO Ninja 5.0.24, but still same issue.

I think this phone is maxxed out at Android 12.

Screen share seems to work until a browser tries to connect. We documented the problem best we could on video uploaded here
https://gab.com/Osaka78/posts/111764877807382267

Kind regards

@Osaka78-on-GitHub
Copy link
Author

Testing different versions of VDO Ninja today
Device Motarola Neo 30 Android 12
5.0.15 Camera works. Screen share doesn't work
5.0.17 Camera works. Screen share doesn't work
5.0.19 Camera works. Screen share doesn't work
5.0.21 Camera works. Screen share doesn't work
5.0.22 Camera works. Screen share doesn't work
5.0.23 Camera works. Screen share doesn't work
5.0.24 Camera works. Screen share doesn't work

@steveseguin
Copy link
Owner

Thank you for that testing.

At the moment I'm not entirely sure what the issue is. I suppose when the viewer connects, the video encoding starts, and things crash due to some issue.

This could be due to a high resolution screen, which might be too high for the video encoder to handle. At the moment, I don't have a good way to lower the capture resolution, but you can try with the 720p mode, rather than the "up to 1080p" mode, to see if that helps.

You can also try a different video encoder; for example, &codec=h264 or &codec=vp8 on the viewer's side. , so https://vdo.ninja/?view=xxxx&codec=vp8

Another option is to try to build the app yourself, and report any errors you see when the app crashes.
https://github.com/steveseguin/vdon_flutter

I haven't yet added logging to the app, so I can't see when an error occurs, but my next task to debug this issue would be to add a logging function. If you want to just build the app yourself though, you won't have to wait for me to do that.

@Osaka78-on-GitHub
Copy link
Author

Testing above suggestions today
Tests done quickly, not battle tested for long
Never built an app before probably wouldn't be a reliable test, too many unknowns
In Tests 2,3,4 you can see some video codecs let screen sharing work
In Tests 1,2,3 push device has battery saver on. Test 4 checks if battery saver off fixes issue
Thanks Steve and kind regards


Test 1 1080p switch on and off didn't help but in Test 2,3 1080p is fine when screen sharing worked


Test 2 Video encoders
Push to various view devices separately, one by one, same results for all view devices
Push device Motarola Neo 30 Android 12 VDO Ninja 5.0.24
View device PC Ubuntu 22.04.3 LTS on Vivaldi 6.5.3206.53
View device Samsung Galaxy Tab A8 on Samsung Internet 22.0.2.6
View device Pixel 3 Android 12 on Chrome 120.0.6099.230

Camera and screen share works as expected for
&codec=vp8
&codec=vp9
&codec=av1
&codec=vp8,h264

Camera works. Screen share doesn't work for
&codec=h264
&codec=webp
&codec=hardware
&h264profile
&codec=h264,vp8


Test 3 Video encoders
Push to 2 view devices simultaneously
Push device Motarola Neo 30 Android 12 VDO Ninja 5.0.24
View device PC Ubuntu 22.04.3 LTS on Vivaldi 6.5.3206.53
View device Samsung Galaxy Tab A8 on Samsung Internet 22.0.2.6

Push device will camera and screen share as expected to 2 view devices simultaneously using any combination of the working codec parameters from Test 2.

Push device Camera works and screen share doesn't work if either view device uses any of the above not working codec parameters from Test 2.

Note: Camera works. Screen share doesn't work when typoed address parameter &vp8 rather than &codec=vp8
Note: Didn't exhaustively test all possible combinations


Test 4 Video encoders and battery saver off
Similar to Test 2 but push device has battery saver off
Push device Motarola Neo 30 Android 12 VDO Ninja 5.0.24
View device PC Ubuntu 22.04.3 LTS on Vivaldi 6.5.3206.53

Exact same results as Test 2 for these 2 devices
Note: For Tests 2,3 when view device was Samsung Galaxy Tab battery saver was off

@steveseguin
Copy link
Owner

Thank you very kindly. You're testing is very appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants