Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming not working when using differents wifi networks #5

Open
miguelwon opened this issue Oct 28, 2019 · 5 comments
Open

Streaming not working when using differents wifi networks #5

miguelwon opened this issue Oct 28, 2019 · 5 comments

Comments

@miguelwon
Copy link

Everything works fine when I'm connected to the same network (browser in laptop and camera in the raspberry pi).

But I tried the following: left alohacam running in the background and then switched the laptop wifi to an external one (used my mobile 4G as hotspot). With this setup, the stream does not work. After connecting, it only shows the first frame and then it gets frozen.

If I switch back the laptop wifi to the local network and connect, it starts to work ok.

I'm using Rasp 4 with:

No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
@thinkski
Copy link
Member

thinkski commented Oct 28, 2019

The available bandwidth over 4G connection may be insufficient (https://www.speedtest.net can give you an idea of available bandwidth). In v0.1.6, the video bitrate is static, but you can adjust it using the --bitrate flag (try --bitrate=1000000 for 1Mbps video). Adaptive bitrate support (i.e. congestion control) is in development and is slated for release in v0.1.7.

@miguelwon
Copy link
Author

Ok, thanks.
Yes, it was related to the bitrate. I set to 250kbps just to make sure and it worked fine.
I measured a latency time of about 230ms. Very nice from what I have seen!
Any plans to make source code public?

@thinkski
Copy link
Member

Thanks! Happy to hear it's working for you.

At the moment, we haven't been able to find a business model that would let us open-source the code, although if that changes in the future we would be happy to do so as we share the belief that open source code makes software more valuable. But we also need to feed our families.

If you are worried that we're eavesdropping on the video or metrics, we're not -- feel free to use Wireshark to inspect the network traffic. We make Alohacam available for free to show developers what is possible, and get real-world testing on our code base.

@miguelwon
Copy link
Author

miguelwon commented Nov 7, 2019 via email

@thinkski
Copy link
Member

Yes, we'll be launching a service next month. Email us at [email protected] and will make sure you're notified when this happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants