Hi Qt community,
I have a real-time audio streaming application for Android using Qt 6.9 that connects to audio servers and handles Opus-encoded audio streams. The app works well in foreground with proper threading, but I need guidance on background operation.
Current Architecture (Already Implemented):
AudioEngine running on dedicated QThread
Proper audio focus management with JNI callbacks
WakeLock/WifiLock management
TCP/UDP socket handling for server connections
Opus encoding/decoding with jitter buffer
Questions for Background Operation:
With audio already on separate QThread, what additional steps are needed for Android background audio?
Should I implement a foreground service notification for continuous audio streaming?
How to handle Qt applicationStateChanged for maintaining server connections in background?
Best practices for QAudioSource/QAudioSink lifecycle during Android background transitions?
The threading architecture is solid - I'm specifically looking for Qt/Android integration best practices for background audio streaming apps.
Thanks!