I have started experiencing a strange case about 2-3 months ago. I have an application that streams videos from azure media services and it was all working fine. I am using EXO Player to play videos with progressive download mode. Azure provides a progressiove download link to videos inside the blob storage with media services.
Then i have realized the streaming became ridiculously slow inside the app. I am opening the same link in Chrom inside my Android Phone (Samsung Note 8) and it loads fine. I am opening the same streaming link on desktop browser and it loads fine too. Only strange thing is it loads excruciatingly slow inside the app.
I am suspecting that it could be an issue with newer android versions like 8 or 9. Because i used to use Samsung Note 2 and it was streaming fine there. I have seen similar performence issues in these questions too but none of them are related to streaming services not have an answer.
Why Azure table storage data loading slow in my Android app?
Azure web api call slow on phone but works well on android emulator
How to speed up cloud service running in windows azure?
Windows Azure Active Directory slow authentication on mobile devices
Any idea would be appreciated.
UPDATE
Streaming services is not the problem because the same streaming link also works fine inside the IOS app. Only trouble is inside the android app.
UPDATE 2
I have converted the player to ExoPlayer and the result is still the same. I have written a small app and opened exactly the same video link and it has loaded just fine on my phone. Only and literally only problem is inside my own app. I open it in demo app, it loads fine. I switch to my original app, it loads slow and sometimes does not even start. I have tried every solution i can ever think of :(