Play RTP / TCP / AVP video stream on Android

We are trying to play the video stream on the Android platform, without success. Using VideoView, we can play mobile videos on YouTube (for example, this url works just fine: RTSP: //v3.cache7.c.youtube.com/CjYLENy73wIaLQnMYzt2FtQmqxMYESARFEIJbXYtZ29vZ2xlSARSBXdhdGNoYI6vr0R/LVl0/www/lvl52

However, we need to play the stream (from the given RTSP URL), for which we have no control. The RTSP server provides RTP / TCP / AVP packets alternating over RTSP. RTSP itself is supported through HTTP tunneling through port 80. The video format is MPEG4-Part2 (H.263). In addition, rtsp URLs can only be used once; built with the key- string every time. In a desktop system, fast time can flow, VLC could not.

Is it possible to play such a stream on an Android device? in some way?

I read googling around that only the built-in (openCore?) RTP stack supports RTP over UDP, not TCP. Is this (true)? Can I somehow work around this problem?

Thank! Turi Andras

+3
source share
4 answers

If it is only UDP, you can redirect packets to the local UDP port (or each to a separate port, which will probably make it easier to feed into the built-in RTP stack).

VLC can not play it is because of the audio codec that is not supported by default. It is hard to find out without any details.

0
source

vlc, u rtsp://serveradress: port/path 554 vlc. android, vlc, . , , 554. , , .

vlc

vlc vlc wiki

.

0

.

Ra & D, RTP Android-.

, smpte2022lib, : http://sourceforge.net/projects/smpte-2022lib/.

( Java) RTP, , VLC RTP,...

, RTP SMPTE-2022 2D-FEC , VLC.

, , , , , UDP, RtpPacket.

RTP- (), .

RtpPacket , . VideoView .

; -)

,

. RTP Android MediaPlayer

0

@https://net7mma.codeplex.com/

, RTSP Interleaved (RTP/AVP/TCP) , , apple.

Apple @https://web.archive.org/web/20130501053040/https://developer.apple.com/quicktime/icefloe/dispatch028.html

You can ignore Content-Length, but I would see that it’s better to work using the response option Multi-Part/Chunkedand post each block $back as a piece, as some proxies will observe the length in the content and close the connection and this is bad during intermittent RTP!

0
source

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


All Articles