androidaudiowebrtcandroid-mediaplayerwifip2p

Which is good WebRtc or wifi P2P to share audio from one device to another device


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-

Points I want to know:-

and after Wifi P2P I want to say that I don't know about WebRTC like:-


Solution

  • 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