简体   繁体   English

使用媒体播放器在 Android 中流式传输 Mp3 文件

[英]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.我的应用程序可以在 Android 10 上运行,但是当我在 Android 5 上尝试我的应用程序时,它不起作用。

The mp3 URL starts with "https". mp3 URL 以“https”开头。 When I change the URL to "http" it worked successfully on Android 5.当我将 URL 更改为“http”时,它在 Android 5 上成功运行。

Which is better for my app, "http" or "https"?哪个更适合我的应用程序,“http”或“https”?

HTTPS is more secure than HTTP. HTTPS 比 HTTP 更安全。 You should use it.你应该使用它。 In the higher version of Android system, HTTP will not be executed by default because it is not secure.在更高版本的Android系统中,默认不会执行HTTP,因为它不安全。 HTTPS cannot run on Android 5 is a very strange thing, you may have to find out why. HTTPS 不能在 Android 5 上运行是一件很奇怪的事情,你可能要找出原因。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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