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

Taking long time (more than 1 minute) to load streams on iDevice #19

Closed
weitheng opened this issue Apr 17, 2021 · 8 comments
Closed

Taking long time (more than 1 minute) to load streams on iDevice #19

weitheng opened this issue Apr 17, 2021 · 8 comments
Labels
question Further information is requested

Comments

@weitheng
Copy link

weitheng commented Apr 17, 2021

Am trying to load 2 streams on my iDevice, but they are taking taking quite long before the video appears. For my iPhone, it took about 1 minute for the streams to appear, while for my Mac, the streams doesn't seem to load no matter how long I waited. I have tried using Safari, Mozilla Firefox, Chrome on my Mac, but with no luck.

On my Android phone, on the other hand, the streams appear almost immediate.

I have allowed port forwarding on the following UDP ports on my router (50000 -> 50009), there are no error logs generated.

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 17, 2021

Try to increase port range to 50000-60000. No need to port forward it on router. And try latest master version

@AlexxIT AlexxIT added the question Further information is requested label Apr 17, 2021
@weitheng
Copy link
Author

weitheng commented Apr 17, 2021

Reinstalled with latest master version, but streams still taking a long time to appear on iDevices. Tried with the bunny sample video, have the same high latency

@weitheng
Copy link
Author

weitheng commented Apr 17, 2021

IMG_2378
Now streams seem to have completely stopped working on my iPhone but work flawlessly on the Android app. The streams seem to be stuck at some stage "... Connection", can't see the first word (attached in the photo). Force closed, restarted device, and reset frontend cache but that message didn't go away.

Checked debug logs on the integration, but no logs were generated. Connected my android phone to the streams, logs and streams were immediately generated and connected.

@weitheng
Copy link
Author

weitheng commented Apr 18, 2021

Got to see the message displayed on the video stream.
IMG_2380

Seems like it's trying to initialise the connection but doesn't really try and connect, as there's no logs on the integration when trying to connect

@weitheng
Copy link
Author

weitheng commented Apr 18, 2021

I managed to get it working on my Mac, apparently my adblocker (Adguard) is blocking the connection. Once I whitelist the HA domain, the streams load immediately.

I tried with my other iOS devices, some worked some didn't. Not sure why. On those that didn't work, I disabled all content blockers, VPN and cleared History and Website Data on Safari. But still stuck on init connection

All my iOS devices are on the latest version.

What could be the problem?

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 18, 2021

Try latest master again

@weitheng
Copy link
Author

That worked! Just wondering what was the issue?

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 18, 2021

Apple makes a lot of trouble for web developers :)

@AlexxIT AlexxIT closed this as completed Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants