[英]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 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.
阅读以下资源以获取更多信息。
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.