Python Forum
Socket to stream data and tranmit and revieve data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Socket to stream data and tranmit and revieve data
#1
Hi, I want to be able to send and receive data between a host and client and stream a video from one computer to another computer outside my network (ie over the internet).
I have already used sockets to have two computers send and receive data like in a messenger system, but I do not know to add a video stream to it.

For example on the client I want a video view, two buttons, say camera a and camera b, and a text some number.
When I click on the button camera a the server send a video stream of camera a and when I click on camera b the server will send a a stream of camera b.
The server will always send a number to send to the client.

I'd imagine the server would send an array like this: [video, DataForText] but, I am confused if this would work to send data from the client to the server.
In my messaging project every message to and from the server would specify the message size first, but I imagine that wouldnt work for streaming videos.
Also the client in this case is going to be an android app I am writting in kotlin.

Sorry if my description is a bit confused I will try to clarify any part. thanks for your time
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  trying to stream data from a websocket to client tomtom 2 2,045 Jan-12-2023, 03:01 PM
Last Post: Vadanane
  how to split socket data onto multiple clients for separate processing ConcealedFox70 0 1,932 Jan-11-2022, 08:26 PM
Last Post: ConcealedFox70
  want to stream rtsp from my Pi camera korenron 0 2,349 Dec-28-2020, 08:23 AM
Last Post: korenron
  socket without blocking loop and automatically retrieve data from the port RubenP 3 3,547 Jun-21-2020, 10:59 PM
Last Post: Gribouillis
  TCP socket, data transnission Simba 4 3,269 Dec-07-2019, 03:15 PM
Last Post: Simba
  Soft Access Point & Socket Data Streaming groger57 1 2,516 Aug-01-2019, 02:53 PM
Last Post: groger57
  Send data BMP180 between client and server trought module socket smalhao 0 2,834 Jul-30-2018, 12:56 PM
Last Post: smalhao
  Python socket : Error receive data quanglnh1993 1 13,012 Mar-14-2018, 11:59 AM
Last Post: avorane
  Socket won't receive data suddenly with multiple clients SquareRoot 0 2,787 Sep-06-2017, 09:09 PM
Last Post: SquareRoot
  socket server with SSL accepting unencrypted data kopite 0 3,263 Apr-20-2017, 08:31 AM
Last Post: kopite

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020