Multi-Device Audio Sharing Using a Secure Code-Based Authentication Mechanism
Abstract
In the current wireless audio sharing landscape, it can be difficult to achieve real-time sharing of audio across multiple devices due to Bluetooth's core limitation of only allowing one active audio connection at a time for any given device. This study builds on previous browser-based research that allowed audio to be sent from with a laptop to a mobile device and improves on it through the development of a cross-platform mobile client application built with Flutter that connects to a Windows laptop host developed with Electron. This system allows audio to be streamed from a laptop through True Wireless Stereo (TWS) to multiple mobile devices, all connected to their TWS earbuds. The overall architecture incorporates secure mechanisms for authentication, to verify clients connecting to the system, and employs FFmpeg for real-time audio capture and encoding on the host.
WebSocket provides low-latency delivery and continuous streaming of audio to all connected clients. The Flutter mobile app displays, buffers, and plays the incoming audio with minimal latency while synchronizing across multiple devices. Experimental results show improved scalability, playback stability, and usability compared to existing Bluetooth methods. Overall, this study puts forward a thin client, secure, scalable solution for real-time multi-device streaming for collaborative listening, entertainment, or presentation across multiple device types.
References
Mozilla Developer Network. WebSocket API Documentation. 2023. Available: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
FFmpeg Project. FFmpeg Documentation. 2023. Available: https://ffmpeg.org/documentation.html
Snapcast Project. Snapcast GitHub Repository. 2023. Available: https://github.com/badaix/snapcast
M. K. Sharma, C.-F. Liu, I. Farhat, N. Sehad, W. Hamidouche, and M. Debbah, “UAV Immersive Video Streaming: A Comprehensive Survey, Benchmarking, and Open Challenges,” arXiv preprint, 2023. Available: https://arxiv.org/abs/2311.00082
S. Kumar, U. Gupta, A. K. Singh, and A. K. Singh, “Artificial Intelligence: Revolutionizing Cyber Security in the Digital Era,” Journal of Computers, Mechanical and Management, vol. 2, no. 3, pp. 31–42, 2023. Available: https://jcmm.co.in/index.php/jcmm/article/view/64
SPAFuzz: Web Security Fuzz Testing Tool Based on Fuzz Testing and Genetic Algorithm, IEEE Xplore, 2023. Available: https://ieeexplore.ieee.org/document/10504208
“Impact of Processor Frequency Scaling on Performance and Energy Consumption,” Annals of Computer Science and Information Systems, 2023. Available: https://annals- csis.org/proceedings/2023/drp/pdf/6213.pdf
Huawei FreeBuds, Wikipedia, 2023. Available:
https://en.wikipedia.org/wiki/Huawei_FreeBuds
H. Yu and C. Moulin, “Paving the Way for the Next Generation Audio Codec for True Wireless Stereo (TWS) Applications – Part 3: Optimizing Latency Key Factor,” Design & Reuse, 2024. Available: https://www.design- reuse.com/articles/49714/audio- codec-for-tws-optimizing-latency-key-factor.html
Y. Fu, K. Sun, R. Wang, X. Li, J. Ren, Y. Zhang, and X. Zhang, “Enabling Cardiac Monitoring Using In-Ear Ballistocardiogram on COTS Wireless Earbuds,” arXiv preprint, Jan. 2025. Available: https://arxiv.org/abs/2501.06744
Refbacks
- There are currently no refbacks.