💾 Archived View for bbs.geminispace.org › u › skyjake › 5424 captured on 2023-09-28 at 19:15:25. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-11-04)

-=-=-=-=-=-=-

Re: "AuraGem Music Public Radio"

Comment in: s/AuraGem

Those builds of Lagrange that use the mpg123 software decoder (all desktop versions) should stream MPEG audio just fine. However, this decoder library is an optional dependency so it is possible the AppImage has some build config issues. I'll have to investigate.

When it comes to iOS and Android, software decoding and playback via SDL — like it is done on desktop — is unfortunately not a good idea because it is too inefficient. Your device will run hot and run out of battery, and that is unacceptable. Instead, the mobile builds need platform-specific code to use native audio APIs and hardware decoders.

On iOS, native audio playback is already implemented, but only for fully downloaded files when the app can hand over a complete "audio/mpeg" file to the native API.

On Android, native audio playback is similarly possible for audio files that have already been downloaded.

Streaming over Gemini and playing back via native APIs is not implemented on either platform. The amount of work required here is significant, and it is difficult to justify prioritizing it because this particular use case is very niche in Geminispace, because neither streaming nor audio are Gemini's "core competencies".

I would certainly want to implement support for better audio playback at some point, but there are more important things to invest my time into.

That said, if anyone has relevant iOS/Android code (playing streaming audio), you can send it my way. It should help make the eventual implementation easier.

🚀 skyjake

2023-09-19 · 9 days ago

1 Later Comment

🚀 clseibold

@skyjake Thanks for the response and for the clarifications. I didn't realize the mobile platforms made it so hard to do audio streaming. Seems like every developer I've known that has programmed for Android has complained about Android being annoying to program for. I'm considering workarounds since the situation on mobile is hard to deal with for those who have made gemini browsers for them.

I will say, however, that I don't think the audio streaming is as niche as you think it is, I just think it's *new*, which is different than saying it's niche. I've gotten a surprising number of comments, likes, etc., and traffic at AuraGem, since I launched AuraGem Music and the public radio.

Also, Gemini has had lots of music files served over it from its very beginning (e.g., Konpeito), which makes sense since it has some overlap with SDF and SDF's anonradio.

Original Post

🌒 s/AuraGem

— auragem.letz.dev/music/public_radio

AuraGem Music Public Radio — AuraGem Music's Public Radio is now live! It plays all public domain music currently. You can find a schedule of what music plays when on the homepage.

💬 clseibold · 11 comments · 4 likes · 2023-09-18 · 11 days ago