Here is the streaming url:
"https://rfcmedia.streamguys1.com/70hits.aac"
Here is my code:
val dataSourceFactory: DataSource.Factory = DefaultHttpDataSource.Factory()
val hlsMediaSource: HlsMediaSource = HlsMediaSource.Factory(dataSourceFactory)
.createMediaSource(MediaItem.fromUri("https://rfcmedia.streamguys1.com/70hits.aac"))
exoPlayer.setMediaSource(hlsMediaSource)
exoPlayer.prepare()
The error:
Caused by: com.google.android.exoplayer2.ParserException: Input does not start with the #EXTM3U header.
What am I missing.