Multiple clients on server-rpi??
See original GitHub issueSubject says it all … i’ve tried to wrap the start_feed function with a bool so as not to start the spawned process a second time but I don’t get any output on the second client; the first continues to work fine.
Any ideas?
start_feed() {
if (this.isFeedStarted) {
return;
}
var readStream = this.get_feed();
this.readStream = readStream;
readStream = readStream.pipe(new Splitter(NALseparator));
readStream.on("data", this.broadcast);
this.isFeedStarted = true;
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Multiple clients to one server - Raspberry Pi Forums
I am working on setting up a sensor network using RPi. I want 2-3 clients (sensing nodes) hooked up to 1 server. I...
Read more >Connecting Multiple Raspberry Pi Clients to a ... - gists · GitHub
Connecting Multiple Raspberry Pi Clients to a Raspberry Pi Server with Socket. ... Running on Raspberry Pi 1. import socketio. sio = socketio.Client()....
Read more >Multiple Raspberry Pi Clients Talk to Pi Server with Python ...
In this video I show you how multiple raspberry pi clients running python can send sensor data to a single raspberry pi server...
Read more >Raspberry Pi Camera streaming to multiple clients
I'm just trying achive similar effect to youtube livestreams or google meets where multiple clients can connect and watch view from my webcam ......
Read more >Clients and Servers
The server must be started first. Once a server is started, it goes to sleep waiting for clients to connect. Whenever a client...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@131 Could you post your implementation of multiple listeners?
@adrhc I’m not sure exactly why what you’re doing isn’t working, but you might be interested in https://github.com/pimterry/raspivid-stream. I wrote this up as a solution for the original issue here generally for the raspivid case. Like the code in this repo, it creates a stream of frames, but it ensures there’s only one video streaming process, and keeps track of the overall stream state it has already seen, to let it create new streams for later consumers, who can then start watching from the current live stream too.
Code is here - it works by storing the initial SPS and PPS (configuration) frames sent when the raspivid process first starts streaming, and then keeping track of the latest IDR (full non-diff) frame as the videos plays. Whenever a client joins, that client is sent those original SPS & PPS frames, followed by the latest IDR frame, and then the rest of the stream from wherever it is currently. I’m not sure exactly how that maps to your situation, but it’s a good solution for anybody pulling video from raspivid, and hopefully it’s helpful!