Comment by 🚀 me

Re: "streaming radio on spartan"
In: s/Geminispace

@bluesman: it works, i did not see that it had to end with %1 (mobile screen size )

@norayr can youbtry on maemo leste :)

THANK YOU for the fast fix

just stopping is not possible, but does not matter, closing and reoping alhena or killing from terminal.

🚀 me

Dec 16 · 2 days ago

9 Later Comments ↓

🦂 zzo38 · Dec 16 at 23:53:

I changed "play -" to "ffplay -f mp3 -", and it works now. (It displays an error message that the header is missing, but it works anyways, despite that.)

🦎 bluesman · Dec 17 at 00:31:

@me If you click the link to the audio stream a second time, it closes the player. If there is no link (say you opened the stream from a bookmark), closing the parent window or tab closes the player. In that situation, I just create a new tab and then close the tab that opened the player.

🐙 norayr [OP] · Dec 17 at 13:24:

tip from zilog on sdf chat:

just listen like this:

echo 'radio.norayr.am /radio 0' |nc norayr.am 300 |sox -tmp3 - -d
🐙 norayr [OP] · Dec 17 at 15:03:

ok i fixed it.

now we stream only ogg. and i generate ogg headers and mobile players like lagrange mobile should play it.

🦎 bluesman · Dec 17 at 15:17:

Works great. How about opus? (Just kidding). Was the ogg switch just for less bandwidth?

🐙 norayr [OP] · Dec 17 at 15:41:

i just already have oggs for all my sets.

btw if anyone knows how to make android/ios to not cut the stream when the screen goes blank, share tips.

in sailfish i found an option in Settings -> Display -> do not blank when charging.

🐙 norayr [OP] · Dec 17 at 18:57:
— /u/norayr/image/720.png

and with ogg we also have metadata.

🦎 bluesman · Dec 17 at 21:16:

That's great! I just added the metadata as a popup tooltip for the embedded vlc component. I tried messing with it before but none of the streams I bookmarked apparently have metadata. Is it not supported with MP3?

🐙 norayr [OP] · Dec 17 at 22:53:

it should be?

however i had to change the radio server once more. i think i won't change design anymore.

before the streaming server was taking ready ogg files and streaming by also caching headers.

but then apparently if the file ended, the radio player would stop.

now i am using ffmpeg, it constantly encodes wav files to ogg and streams.

there's always one stream, and it pipes wav to ffmpeg, and gets out of ffmpeg and streams.

lagrange can connect to it. and if one track ends lagrange and other players dont notice because they get constant stream.

so everything is correct.

however metadata was taken back then from ogg files, and now i just add stream metadata and it is configurable option.

Original Post

🌒 s/Geminispace
— spartan://radio.norayr.am

streaming radio on spartan — you can listen to it in lagrange browser. if you press pause, then resume will resume from the place you pressed pause. you need to close and reopen the tab to get the stream from the current place. otherwise you can listen to it via player. i guess via any spartan client that can pipe to a media player. one such a player is here: [https link] spartan radio player

💬 norayr · 33 comments · 5 likes · Dec 15 · 4 days ago