When setting a MediaPlayer DataSource to a HTTP URL as opposed to an HTTPS URL, no audio streams and MediaPlayer error code -38 is displayed in logs.
Asked
Active
Viewed 45 times
1 Answers
0
I attempted to connect to the stream using ExoPlayer instead, and received this error. Following the docs suggestion, I added the following line of code to the application tag of my application's manifest file:
android:usesCleartextTraffic="true"
I am now able to connect to the stream at HTTP URL using both ExoPlayer and MEdiaPlayer.

John Harrington
- 1,314
- 12
- 36