Reputation: 340
I have a special device (a sort of external video camera) which should send video in real time and streaming to a smartphone (android first). In other words imagine how GoPro app works, in which you are able to watch in real-time on your smartphone what camera is recording .
My question is, what kind of protocol should be used to get the real time video streaming? I though about WebSocket but I do not know if it is the best solution as alternative to HTTP.
I looking forward to hearing from you Thank you so much.
Upvotes: 1
Views: 2212
Reputation: 827
Ypu sholud use RTSP protocol. Depending on whether the codec uses your camera, you sholud use MediaPlayer class (see docs) or use VLC library.
Upvotes: 2