Streaming video from Android device to PC using libstreaming
I am trying to stream video from Android device to PC using libstreaming library . To connect two devices, I open Hotspot on my Android device and connect my PC to it.
I tried examples 1 and 2 and ran them. In example 2, I am getting a lot of UDP packets in Wireshark. But I cannot open the stream in VLC Player. In example 1, I am not getting anything in Wireshark.
Can anyone tell me what I need to print in VLC to open the stream? I've tried many different things, but I'm not sure if I did it right. For example, I think it should be something like rtsp: // ipofandroiddevice: port
source to share
The RTSP url posted in your question is missing some parameters, it should be something like
RTSP: // phone_local_ip: 1234 h264 = 200-20-320-240
200 = buf | 20 = fps | 320 = width | 240 = height
The library has a UriParser class, you might need to check it for other possible URL formats.
source to share