-
Notifications
You must be signed in to change notification settings - Fork 70
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
Stream not found (Android) #204
Comments
Android has some problems with multicasting, especially on the emulator. I'm a bit swamped right now, but I have bumped the SDK versions for the android build and updated the included loguru library (that finally includes my fixes for pthread based thread names). Android builds with |
Thank you very much! I was able to compile with |
@tstenner Hello! After upgrading loguru library I am unable to build my Windows application using mingw. Also about the problem on Android. I don't use the simulator. And I don't get any error messages. But the stream still appears in LabRecorder and then disappears when I click the refresh button. I added share.h and the program compiled successfully. But I still have some warnings. |
I think I've solved my problem! By default, receiving UDP Multicast packets from Android is disabled. The reason is explained below: To make it work, please perform the following steps: Add the following permissions to the Android Manifest:
Create a file -> MulticastLocker.java
Done! Now before creating lsl::stream_outlet we just need to call the lockMulticast function from C++, for this I use QJniObject.
I also built LabRecorder for Android and it works too and writes all streams to an xdf file. =) Thank you all! I'd like to recommend that you check out this solution. And maybe add a description in: https://labstreaminglayer.readthedocs.io/info/network-connectivity.html |
Hello everyone!!!
I have created an application to show visual stimuli for Android platform on QT.
When starting the application, I call:
When I try to start recording a stream from Android using LabRecorder I get an error
However, if I click yes, I soon get the following message in the console:
All data is recorded correctly. As it seems to me.))
If you hit the update button periodically (in LabRecorder UI), the stream is sometimes online and sometimes offline.
I am using a Samsung Tab S7 tablet (Android 12). It and the PC are connected to the same WiFi network. I tested on another similar tablet and another PC. The problem is repeated(.
But when I build this application for Windows everything works fine!
The text was updated successfully, but these errors were encountered: