我应该使用什么在我的 android 应用程序上显示流媒体 url?

What should i use to display a streaming url on my android app?

我想在我的 android 应用程序(在本例中来自 IP 摄像机)上使用流媒体的 URL 显示实时流媒体。

流媒体显示在网页上,所以基本上我想做的是将其显示到网页,直接显示到我的应用程序。

在这种情况下,我应该使用 Picasso,WebView 还是 ImageView?哪个更有效?为什么?还是我应该使用其他工具?

非常感谢阅读,我对此有点迷茫。

Picasso 和 ImageView 无法处理视频流。你应该使用VideoView,但是它对各种媒体格式有很大的限制,先试试看,如果不行,再试试

  1. Vitamio,简单易用,但rtmp和rtsp流延迟大
  2. ffmpeg, this is a good choice for rtmp and rtsp streams, but you need to find ffmpeg port for android, for example this AndroidFFmpeg, but you can find more, personally I used this sodaplayer,对于rtmp流,与vitamio或web插件相比,它的延迟非常小。
  3. GStreamer我用了很多,很棒的库,有点难用,但是当你体验它的时候,它会很有帮助

我用了这3个库,这要看是什么流,都有好有坏,看流格式。