I have music player and need to add sync play functionality with other mobile. For example if 2 or more users are using my music player and want to play same song on all devices then they just connect through same network and can play music on all devices from one device with complete music player control of all devices on single device.
Would anyone explain me which is best and how can I share audio from one Android device to another device on Sync and what are the steps to do so.
Points I know about WiFi P2P-
create connection
create socket for sharing
share a complete file
Points I want to know:-
How can I share file without storing in another device storage.
How to play sound on both devices at same position (ON SYNC).
and after Wifi P2P I want to say that I don't know about WebRTC like:-
How it works?
How to setup connection for this ?
Is it always required internet connection ?
Is same application is required in both devices to create connection between devices?
I don't know is this helpful for you or not just see the links may be you get some useful info...
for web rtc
https://webrtc.org/native-code/android/
This link will help you to know about webrtc like how it works and how to setup