Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Empty SparseArray on first attempt #2

Closed
Ashish-Bansal opened this issue Feb 22, 2016 · 4 comments
Closed

Empty SparseArray on first attempt #2

Ashish-Bansal opened this issue Feb 22, 2016 · 4 comments

Comments

@Ashish-Bansal
Copy link

Hi,

I was using this library in an application and sometimes it gives empty SparseArray in first attempt but on trying again for same video, it gives all the links. I know it sounds weird but it happens a lot of times.

Do you know what could be the problem ?

Thanks!

@Ashish-Bansal Ashish-Bansal changed the title Sometimes empty SparseArray Empty SparseArray on first attempt Feb 22, 2016
@HaarigerHarald
Copy link
Owner

Can you give me a sample video where this behavior occurs. I can't reproduce it with the unit tests.

@Ashish-Bansal
Copy link
Author

It happens with vevo vidoes :

Adele When we were Young (AdeleVevo) : https://www.youtube.com/watch?v=DDWKuo3gXMQ
Adele Hello (AdeleVevo) : https://www.youtube.com/watch?v=YQHsXMglC9A

It doesn't happen always, only sometimes.

@HaarigerHarald
Copy link
Owner

Still can't reproduce it. But since it only happens on signature enciphered videos maybe

is causing it.

Can you try to increase it to 5-10 seconds and report back if that fixes it.

Little insight, afaik there is no way to capture a js error in a webview. The webview just won't respond on an error and without the wait there would be a deadlock. The first start of a webview is usually slower than consecutive ones, which would explain why it works when you try it again.

@Ashish-Bansal
Copy link
Author

Yes, that seems to fix the issue.

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

No branches or pull requests

2 participants