Live data from Hacker News

Show HN: Lofi.cafe

lofi.cafe

21–30 of 237 posts

Re: Show HN: Lofi.cafe

#21
post #13

Beautiful. Soothing. Magical. :) Is the list of stations hand picked, can I access it outside this app? When adding to home screen I get React app as title by default.

The stations are actually YouTube streams, if you open dev tools you can get the stream ID from the YouTube thumbnail that gets preloaded by the YouTube library.

Re: Show HN: Lofi.cafe

#22
post #16
post #9

Those background images could really use some artist attributions.

The streams should also be linked to.

The streams are just the name as a youtube video. For example if you click the "lofi hip hop radio - beats to relax/study to" in the bottom left (r what ever you are on) you'll see all the streams. Copying that name and pasting it in Youtube will show you the stream.

Though I do agree a link to them (since there is no mention of Lofi Girl anywhere for example) would be nice.

Re: Show HN: Lofi.cafe

#24

Could the CPU load be reduced? If I am only on the page, not even playing any music yet (probably because something is blocked), I get 1 core up at 100% CPU load. This can't all be for an animated background image, can it?

Ouch you're totally right. I want to add an option to have static JPGs instead of GIFs. Already added to the backlog.

Re: Show HN: Lofi.cafe

#25
post #16

Earlier quoted context omitted.

The streams should also be linked to.

The streams are just the name as a youtube video. For example if you click the "lofi hip hop radio - beats to relax/study to" in the bottom left (r what ever you are on) you'll see all the streams. Copying that name and pasting it in Youtube will show you the stream. Though I do agree a link to them (since there is no mention of Lofi Girl anywhere for example) would be nice.

I'll add a little link to open the related YouTube video, it's much needed.

Re: Show HN: Lofi.cafe

#26
post #6

What does "in this room: 25" mean? The number remains the same when I change the station. Is there only a single room and I changed the station for everybody? Or are there 25 people in every room (=station)? :-)

It's the current visitors. I liked the word "room" to make you feel like you're in good company, but maybe it'd be better to just write "live now". What do you think?

Re: Show HN: Lofi.cafe

#28

Could the CPU load be reduced? If I am only on the page, not even playing any music yet (probably because something is blocked), I get 1 core up at 100% CPU load. This can't all be for an animated background image, can it?

Looks like it is, if I remove the 4 gifs stacked on top of each other CPU usage drops massively.

If it's only a few frames you might be able to arrange them vertically in a PNG and animate background-position to get the same effect for cheaper.

Correction: you want to use transform to force creation of a new rendering layer, then when adjusting the rendered position of the element using transform will not cause a repaint.

Re: Show HN: Lofi.cafe

#30
post #25

Earlier quoted context omitted.

The streams are just the name as a youtube video. For example if you click the "lofi hip hop radio - beats to relax/study to" in the bottom left (r what ever you are on) you'll see all the streams. Copying that name and pasting it in Youtube will show you the stream. Though I do agree a link to them (since there is no mention of Lofi Girl anywhere for example) would be nice.

I'll add a little link to open the related YouTube video, it's much needed.

You are aware that it's usually a ToS violation to play YouTube videos without showing the YouTube player? https://developers.google.com/youtube/terms/required-minimum...
Post reply on HN