简体   繁体   English

从Android相机到浏览器的实时流传输

[英]Real-time streaming from Android camera to browser

We are working on an IP camera Android app that should stream the video took in real-time by the Android camera to a Web page served by the same app and accessed through WiFi only. 我们正在开发一个IP摄像头Android应用,该应用应将Android摄像头实时拍摄的视频流传输到同一应用提供的网页,并且只能通过WiFi进行访问。

The app currently use a pseudo-streaming method (an image sent using HTTP with no-store), but it is not robust enough, so we need to change it for a better streaming method. 该应用程序当前使用伪流方法(使用不带存储区的HTTP发送的图像),但不够鲁棒,因此我们需要对其进行更改,以实现更好的流方法。 We also need to support multicast (or at least an optimized "multi-unicast"), and if possible use an UDP protocol (or at least a low-latency TCP protocol). 我们还需要支持多播(或至少是优化的“多单播”),并在可能的情况下使用UDP协议(或至少是低延迟TCP协议)。

We cannot use any intermediary server (so no Wowza or the like, unless it is also served by the app) or any browser plugin (so no VLC or the like, unless it is served by the app too). 我们不能使用任何中间服务器(除非应用程序也提供服务,否则不得使用Wowza等)或任何浏览器插件(除非应用程序也提供服务,否则不得使用VLC等)。 The main browser it is used on is Chromium. 使用的主要浏览器是Chromium。

We searched for and tried a lot of methods but none worked for us : 我们搜索并尝试了许多方法,但没有一种方法对我们有用:

  • WebRTC sounds cool, but it uses an intermediary signaling server, it doesn't support multicast, and it is kind of heavy for what we want WebRTC听起来很酷,但是它使用中间信令服务器,不支持多播,对于我们想要的东西来说有点沉重
  • RTSP with libstreaming sounds cool too, but no browser seems to implement it, and we couldn't find a Javascript library to do it. 带有libstreaming的RTSP听起来也很酷,但是似乎没有浏览器实现它,而且我们找不到Java库来实现它。
  • RTMP works on most browsers, but we could'nt find a working Android library RTMP可在大多数浏览器上使用,但我们找不到有效的Android库

Which streaming method would be best for our needs, and do you know Javascript and Android libraries implementing them ? 哪种流媒体方法最适合我们的需求,您知道实现它们的Javascript和Android库吗?

无法将多播流传输到浏览器。

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

相关问题 从 javascrit 到 python-django 的实时音频流 - Real-time audio streaming from javascrit to python-django 从浏览器中的实时表记录数据 - Log data from a real-time table in browser Javascript实时语音流,并在django后端处理它 - Javascript real-time voice streaming and processing it in django backend 使用 react 和 chartjs 绘制流式实时数据 - Graph streaming real-time data with react and chartjs 反映流式实时数据的原生图表? - React native chart for streaming real-time data? 将联网的 C 程序的实时数据发送到浏览器客户端进行绘图 - Send real-time data from networked C program to a browser client to plot 如何在网络浏览器中显示实时数据? - How to display real-time data in a web browser? 从 ffmpeg 到浏览器的实时音频流(我错过了什么吗?) - Real time audio streaming from ffmpeg to browser (am I missing something?) Javascript 实时倒计时(从开始计时到结束时间) - Javascript real-time countdown (count from Start to End time) 使用 gstreamer-rtsp 服务器将视频实时流式传输到 web 页面 - Streaming video in real-time using a gstreamer-rtsp server to a web page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM