CappielloAntonio / tempo

An open source and lightweight music client for Subsonic, designed and built natively for Android.
GNU General Public License v3.0
862 stars 39 forks source link

[Feature Request] - Support m3u8 for streaming radio #233

Closed adrienneteicher closed 1 month ago

adrienneteicher commented 1 month ago

Summary

Support m3u8 for streaming radio

Description

Streams with m3u8 format fail with error message "unknown format"

Use Case

Many web radio streams use this format

Additional context

https://mediaserviceslive.akamaized.net/hls/live/2038316/classicfmnsw/masterhq.m3u8

CappielloAntonio commented 1 month ago

The "Unknown format" message is not an error message. The radio stream is indeed of unknown format as we do not have the actual source. HSL streams are managed now, so it works.

There is a problem however and it concerns the new caching management of music tracks. If enabled, the player will also try to cache the hls flow, which however takes the data on request from the server that provides it. To listen to this new stream, the streaming caching option must be disabled in the settings.

You can try it: app-notquitemy-debug.zip

adrienneteicher commented 3 weeks ago

Hey there.

As a layperson I was not able to follow your answer.

I can not see the streaming cahcing option in the settings.

Also, I am not sure what I should do with the apk you have provided.

Anyway. Thanks for all the work you have done. I am happy enough just using Tempo for my music.

CappielloAntonio commented 3 weeks ago

The application installed on your device at this moment does not allow you to play the radio streaming you are talking about.

I have implemented this type of playback even though a release containing it has not yet been made. The apk I have attached is a test one, in case you want to try that particular stream before the final release.

The problem I was telling you about is intrinsic to the flow type and caching algorithm. For HLS streams caching must be disabled.