ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
329 stars 51 forks source link

Stream video outside my network. #57

Open TheDeadSlayer opened 1 year ago

TheDeadSlayer commented 1 year ago

Hello,

I wanted to know if it's possible to use this streamer to stream webrtc video over the internet and access it on a mobile application (made in react native) outside my network.

mattzuba commented 1 year ago

Sure, you'll just have to expose the stream outside of your network using something like Port Forwarding on your router. Note that this isn't entirely secure and if there were somehow a vulnerability discovered in this app, it could lead to issues on your pi or more.

CelloVerb commented 1 year ago

Worth mentioning the the usual way to do this is to have your device stream to a video streaming server that is able to service many clients, is secure, etc. - then you don't need to open up your firewall and deal with people trying to hack the system. But this will introduce latency, which is sometimes not desirable.

dominikuskoch commented 9 months ago

Hi there, I have the same question.

I tried to transmit the HTTP connection to the public network via ngrok. In principle, this works, but it quickly consumes a lot of traffic and introduces significant delays.

Is there perhaps a way to transmit the stream via Websockets (or a similar technology)? Then I could run a small repeater server.

My self-built camera stream had a pretty good speed with this method, but the Pi (due to overhead from the browser) cannot handle a smooth stream.

My goal is to generate a video stream with low latency over the LTE network and then control the car/boat with the Steam Deck.