nstudio / nativescript-videoplayer

:clapper: Video Player widget for NativeScript apps
MIT License
133 stars 59 forks source link

Online Videos wont play On Android 10 - MIUI 12 #176

Closed ghost closed 4 years ago

ghost commented 4 years ago

while I can play local files easily, I can't play some online files on my device. ( Android 10, MIUI 12 )

I even tried this: playground

this video . on Android 10 won't work on Android 6 : works!

this video: on Android 10 works! on Android 6 : works!

bradmartin commented 4 years ago

Possibly a security config is needed for your application. You can allow all HTTP traffic or set some configuration for network access per URLs. The video not playing on Android 10 is served over HTTP and not HTTPS. So that's likely the issue you're encountering.

ghost commented 4 years ago

seems right, could you help me out to implant such confings?

bradmartin commented 4 years ago

I believe this https://stackoverflow.com/a/51902630 will get you going in the right direction 👍 if you get stuck, let me know.