Android Question ExoPlayer can't play this url

Almora

Active Member
Licensed User
this link doesn't work anyway.

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
The last part of both links in previous post are wrong. Chunklist is only one part of stream, probably about 10 sec long.
You need to find playlist.m3u8.
And here is that link: https://evpp.mm.uol.com.br/band/radiobandeirantes_sp/playlist.m3u8

To play this link use:

B4X:
ExoPlayer.Prepare(ExoPlayer.CreateHLSSource(https://evpp.mm.uol.com.br/band/radiobandeirantes_sp/playlist.m3u8))
ExoPlayer.Play
 
Upvote 0

jcesar

Active Member
Licensed User
The last part of both links in previous post are wrong. Chunklist is only one part of stream, probably about 10 sec long.
You need to find playlist.m3u8.
And here is that link: https://evpp.mm.uol.com.br/band/radiobandeirantes_sp/playlist.m3u8

To play this link use:

B4X:
ExoPlayer.Prepare(ExoPlayer.CreateHLSSource(https://evpp.mm.uol.com.br/band/radiobandeirantes_sp/playlist.m3u8))
ExoPlayer.Play

Thanks, but did not work.

This is the error message:

com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403

How do you find this file ?
 
Last edited:
Upvote 0
Top