Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Android] Switching Wi-Fi connection with RTMFP usage in Worker cause crash #96
Switching Wi-Fi connection with RTMFP usage in Worker on Android devices cause application crash.
Steps to Reproduce
Launch code below with any Android device with Wi-Fi connection. Switch (disable) Wi-Fi connection on device with quick settings menu (may be few times).
none (use RTMFP in the main thread but it cause performance issues ang lags)
I thought I'd responded here yesterday but I guess not...
One of the guys has investigated this and found the cause for the hang - basically to do with threads (workers) vs the asynchronous callback mechanism used in Android. We can adjust the code so that this uses the appropriate instance for the thread but there is a risk that we're then affecting the RTMFP behaviour within the background worker.
Given our test cases are often doing things in isolation, I wondered whether you had a real-world application that uses RTMFP in a Worker and could test out a build for us to see if our fix is suitable or whether it introduces any knock-on issues? If that's a possibility, please contact us at email@example.com and mention this issue reference..