Live-stream video from one android phone to another over WiFi

前端 未结 4 1651
北海茫月
北海茫月 2020-11-29 14:53

I have searched the internet for days now on how to implement a video streaming feature from an android phone to another android phone over a WiFi connection but I can\'t se

4条回答
  •  再見小時候
    2020-11-29 15:09

    I did work on something like this once, but sending a video and playing it in real time is a really complex thing. I suggest you work with PNG's only. In my implementation What i did was capture PNGs using the host camera and then sending them over the network to the client, Which will display the image as soon as received and request the next image from the host. Since you are on wifi that communication will be fast enough to get around 8-10 images per-second(approximation only, i worked on Bluetooth). So this will look like a continuous video but with much less effort. For communication you may use UDP sockets(Faster and less complex) or DLNA (Not sure how that works).

提交回复
热议问题