Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
68 views
in Technique[技术] by (71.8m points)

javascript - 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. I tried using WebSockets and SocketIO, but that only helps with text transfer. Also, I know about WebSocketStream in Js but I just can't find any implementation in python. Guide me please.

question from:https://stackoverflow.com/questions/65892128/sending-video-from-reactnative-app-to-python-server-via-socket

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Websocket is not suitable for this type of applications. you can use technologies like WebRTC for this this purpose. take a look at these technology and frameworks to see which one fit your needs.

  • webRTC: for p2p connection
  • kurento: webRTC media server
  • hls and live streaming technologies

webRTC is a technology developed by google for real-time P2P communication. You can use webRTC to connect two or more end user together and send Data/Audio/Video. Read following resources for more information.

webRTC

React Native Implementation

But its only offer P2P connection for you. If you want to store/modify/broadcast your streams you must use something like Kurento media server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...