Android app for streaming IP camera using P2P mode via mobile port?

I am trying to transfer video through an IP camera in an Android application. I managed to get the video using the following:

  • RTSP using Media Player and Surface View.
  • RTSP using video view.
  • Redirect to VLC for video streaming.
  • Redirect to home
  • Video player for streaming video.

Now all these cases work, but with an average lag of 7-8 seconds, even on the local network.

I see some applications that hover without any lag even on a remote network that use a mobile port (18600) . This port is usually associated with the P2P mode on the camera (this assumption is purely based on my understanding in accordance with the following settings available on my camera settings interface, which shows: Mode-P2P, Port - 18600, RealTime - Normal).

Can someone help me understand how we can connect to the mobile port of an IP camera in P2P mode? and How does this mode not show lag, where does RTSP work?

Thanks in advance.

+6
source share

Source: https://habr.com/ru/post/975862/


All Articles