简体   繁体   English

通过套接字将视频从 ReactNative 应用程序发送到 Python 服务器

[英]Sending video from ReactNative app to Python Server via socket

I am developing an application in RN which sends the video from the front camera.我正在 RN 中开发一个应用程序,它从前置摄像头发送视频。 I tried using WebSockets and SocketIO, but that only helps with text transfer.我尝试使用 WebSockets 和 SocketIO,但这仅有助于文本传输。 Also, I know about WebSocketStream in Js but I just can't find any implementation in python.另外,我知道 Js 中的 WebSocketStream,但我在 python 中找不到任何实现。 Guide me please.请指导我。

Websocket is not suitable for this type of applications. Websocket 不适合此类应用。 you can use technologies like WebRTC for this this purpose.为此,您可以使用 WebRTC 等技术。 take a look at these technology and frameworks to see which one fit your needs.看看这些技术和框架,看看哪一个适合您的需求。

  • webRTC: for p2p connection webRTC:用于p2p连接
  • kurento: webRTC media server kurento:webRTC 媒体服务器
  • hls and live streaming technologies hls 和实时流媒体技术

webRTC is a technology developed by google for real-time P2P communication. webRTC是google为实时P2P通信开发的技术。 You can use webRTC to connect two or more end user together and send Data/Audio/Video.您可以使用 webRTC 将两个或多个最终用户连接在一起并发送数据/音频/视频。 Read following resources for more information.阅读以下资源以获取更多信息。

webRTC webRTC

React Native Implementation 反应本机实现

But its only offer P2P connection for you.但它只为您提供 P2P 连接。 If you want to store/modify/broadcast your streams you must use something like Kurento media server .如果你想存储/修改/广播你的流,你必须使用类似Kurento media server的东西。

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

相关问题 我在使用 Axios 从我的 ReactNative 应用程序发送 FormData 并使用 multer 将其放入我的服务器时遇到问题 - I got problem sending FormData from my ReactNative app with Axios and get it in my server with multer 将数据从Python TCP套接字(作为服务器)发送到JS客户端 - Sending data from the Python TCP Socket(as server) to the JS client 通过套接字将数据从js客户端发送到py服务器不起作用 - Sending data from js client to py server via socket don't work Socket.io未从客户端向服务器发送数据 - Socket.io not sending data from client to server 使用socket.io将数组从服务器发送到客户端 - Sending array from server to client with socket.io 将用计算机摄像机捕获的视频从网站发送到服务器 - Sending video captured with the computer camera from a website to a server Socket.io-通过https从客户端连接到服务器 - Socket.io - Connect from client to server via https 将视频和音频流发送到服务器 - Sending video and audio stream to server 通过 base64 编码将图像从服务器发送到客户端 - Sending image from server to client via base64 encoding 通过JSON从JSON发送服务器端对象到jqGrid - Sending a server-side object via JSON from Javascript for jqGrid
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM