News for hackers. Stuff that matters.
Re:Show HN: I built a virtual concert venue for artists by timdaub on Tuesday December 29, 2020 @07:44AM (#25569203)
Hi HN,

OP here. If you wanna know more about the code involved in this project, I'm happy to answer your questions!

WASM-STREAM is really just a quick hack for rc3, the remote chaos communication congress happening right now.

But so far, I found it quite entertaining to listen to the audio stream.

Edit: Provisioned an ogg-vorbis stream now too. So now the blog should play the stream in Chrome-based browsers too.

Re:Show HN: I built a virtual concert venue for artists by lasagna_coder on Wednesday December 30, 2020 @04:31AM (#25580097)
Hi! I like what you're doing here. I'm the author of a tool that utilises an opus encoder and decoder in the browser to emulate something like modern live streaming. I followed similar ideas to yours but ultimately found that the icecast route was a little bit limited. If you're interested, the code is here: https://github.com/gaxge and is in the process of being refactored/ updated. You can play around with the original prototype here: https://low.show/noisecrypt/app. I use the streaming tools mainly for doing stuff with jamming in combination with randomness but they can be repurposed for normal linear real-time streaming.

I'm also based in Germany, and you're welcome to reach out if you want to talk about this kind of stuff further.

Re:Show HN: I built a virtual concert venue for artists by timdaub on Wednesday December 30, 2020 @05:24AM (#25580440)
Oh cool! I'll definitely take a look. Thanks!
Re:Show HN: I built a virtual concert venue for artists by timdaub on Wednesday December 30, 2020 @05:15AM (#25580364)
Damn it, now you guys are all on my website and the ogg-vorbis encoding (a requirement for the stream working in Chrome) crashed and I'm not at home!

Edit: I finally got home and restarted the ogg stream. Will have to find a solution for it to remain up...

Re:Show HN: I built a virtual concert venue for artists by streamer45 on Wednesday December 30, 2020 @09:04AM (#25581740)
Nice! Are all user inputs mixed into the same stream?
Re:Show HN: I built a virtual concert venue for artists by timdaub on Wednesday December 30, 2020 @09:22AM (#25581897)
Yes they are. Technically though it's not mixed. All arriving audio data is dumped into a single buffer. Mixing would now be a great way to get rid of the stream's choppyness.

now that so many users are playing simultaneously, I'm a bit annoyed that some leave the website open and stream silence.

Wondering how I could get a user a fair slot to perform now...

Anyways, the stream has become a great source of entropy now :D

Re:Show HN: I built a virtual concert venue for artists by daniellarusso on Wednesday December 30, 2020 @10:23AM (#25582409)
So, is this like a giant party line?

https://en.m.wikipedia.org/wiki/Party_line_(telephony)

Re:Show HN: I built a virtual concert venue for artists by streamer45 on Wednesday December 30, 2020 @09:41AM (#25582046)
Oh I see. Server side mixing would probably be a good option to help it scale better. Cool stuff anyway :)
Re:Show HN: I built a virtual concert venue for artists by timdaub on Wednesday December 30, 2020 @11:31AM (#25583048)
I now hacked together a really bad mixer. Not sure how it will work live. Let's see.

I usually don't do prod testing but hey I'm on holiday :D