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

Support to http urls #10

Closed
Athanax opened this issue Dec 14, 2019 · 3 comments
Closed

Support to http urls #10

Athanax opened this issue Dec 14, 2019 · 3 comments

Comments

@Athanax
Copy link

Athanax commented Dec 14, 2019

the package returns errors when the video url is http. i.e. not secure

@justsoft
Copy link
Owner

@Athanax
Copy link
Author

Athanax commented Dec 15, 2019

Give this a try? Let me the result thank you!
https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie

This has helped so great.
AndroidManifest.xml

android:usesCleartextTraffic="true" 

I had three cases of URLs.

  1. Localhost: http://127.0.0.1:8000 which I had set to http://10.0.2.2:8000 for use on emulators.

  2. HTTP for not secure.

  3. HTTPS for secure.

The solution only worked for cases 2 and 3 which I think to me am okay because I've hosted the API.

About issue #9, the reason was I tested the application using HTTP and https as in cases 2 and 3 above on a mobile device and in localhost (case 1) on an Android TV device which I think for now it's solved.

@justsoft
Copy link
Owner

Thank you!

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

No branches or pull requests

2 participants