简体   繁体   English

通过TCP传输Android RTSP

[英]Android RTSP streaming over TCP

We are facing some issue regarding TCP streaming, So we need help. 我们正面临一些关于TCP流媒体的问题,所以我们需要帮助。

Project requirement: RTSP streaming over TCP. 项目要求:通过TCP传输RTSP。 Take snapshot of streaming video. 拍摄流式视频的快照。 Streaming multiple videos in single screen. 在单个屏幕中流式传输多个视频。

We have used Android media player to stream RTSP. 我们使用Android媒体播放器来传输RTSP。 But media player supports RTSP only over UDP protocol, It fails over TCP. 但媒体播放器仅通过UDP协议支持RTSP,它通过TCP进行故障转移。 We need to support RTSP streaming over TCP protocol in the project. 我们需要在项目中支持TCP协议上的RTSP流。

Android VLC player supports streaming RTSP over TCP protocol. Android VLC播放器支持通过TCP协议传输RTSP。 We have tried VLC using this link https://wiki.videolan.org/AndroidCompile/ . 我们已经使用此链接https://wiki.videolan.org/AndroidCompile/尝试过VLC。 But we cannot play multiple videos in single screen, also snapshot feature cannot be implemented since VLC uses SurfaceView to load the video. 但是我们无法在单个屏幕上播放多个视频,因为VLC使用SurfaceView加载视频,也无法实现快照功能。

Any suggestion regarding "streaming multiple RTSP videos over TCP" and "Snapshot" would be helpful. 关于“通过TCP流式传输多个RTSP视频”和“快照”的任何建议都会有所帮助。

Thanks in advance. 提前致谢。

now the VLC code is updated. 现在VLC代码已更新。

  • it supports multiple instance. 它支持多个实例。
  • You can use texture view to get a snapshot gather than surface view. 您可以使用纹理视图来获取快照聚集而不是曲面视图。

hope this helps ;) 希望这可以帮助 ;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM