简体   繁体   中英

Streaming Mp3 File in Android with Media Player

My application works on Android 10 but when I tried my app on Android 5 it's not working.

The mp3 URL starts with "https". When I change the URL to "http" it worked successfully on Android 5.

Which is better for my app, "http" or "https"?

HTTPS is more secure than HTTP. You should use it. In the higher version of Android system, HTTP will not be executed by default because it is not secure. HTTPS cannot run on Android 5 is a very strange thing, you may have to find out why.

我多次尝试在 android 5 上使用 https mp3 链接,但没有成功,我认为我们必须对所有 android 版本使用 mp3 http 链接。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM