MallocArray / obico-oraclecloud

Self Hosted Obico server on Oracle Cloud Free Tier
53 stars 3 forks source link

Premium webcam streaming now working in app #9

Closed fofinho11 closed 1 year ago

fofinho11 commented 1 year ago

Hi, first of all thank you for this - the instructions are very well written up.

I have my private server running and everything works great but the webcam streaming in the obico app.

The premium webcam stream works:

As it is working while using the obico cloud server I think its a issue with the private server configuration.

In obico discord I was guided to this: https://www.obico.io/docs/server-guides/faqs/#why-doesnt-the-premium-streaming-work

I think it might be a network issue. Is there an easy way to open all ports just to troubleshoot if thats the problem?

Thank you!

MallocArray commented 1 year ago

Is it only the premium stream that is almost realtime or do you get no video at all? I have noticed for the last few weeks that my Android app updates the video very infrequently, like the non-premium 0.1 fps, or every 10 seconds. Tried changing the plugin to using compatibility mode with no luck.

You can go to Networking>Virtual Cloud Networking>change to your compartment>select your VCN>Network Security Groups. From there you could add a rule that allows everything. Direction: Inbound Source Type: CIDR Source CIDR: 0.0.0.0/0 IP Protocol: All protocols

I wouldn't keep it this way, but should help with troubleshooting.

There is also an iptables firewall inside of the VM that I don't have the steps off the top of my head to turn off or allow all, but the docker config opens the ports used when the container starts, so it shouldn't be there.

I did recently change the OS image from Ubuntu 20.04 to 22.04, but you could go into the Stacks area to find your Obico stack and edit the Variables section to change it back to 20.04 and then run an Apply to have it remove your current VM and recreate it with the previous OS and see if that changes anything as well.

fofinho11 commented 1 year ago

Hi, thanks for your reply. I forgot to mention in the orginal post that only 0.1 FPS webcam stream works in app. I think thats only snapshots being provided and not really streaming a video. So basicly it's the same you describe.

Will try what you suggest and report back!

fofinho11 commented 1 year ago

Tried both - no success for in app webcam streaming. In browser it always worked. I had the premium stream working some weeks ago and suddenly it stopped.

Any other ideas? Thanks!

MallocArray commented 1 year ago

It was discovered that a change to the STUN settings in the app awhile back caused the 0.1 FPS streaming in the apps only. It was corrected in the November/December timeframe and is no longer an issue and was in the App itself.