4 ms·
Show HN: I built a virtual concert venue for artists
- timdaub 6y agoHi 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.
- lasagna_coder 6y agoHi! 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 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 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.
- timdaub 6y agoOh cool! I'll definitely take a look. Thanks!
- timdaub 6y agoDamn 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...
- deleted 6y ago[deleted]
- streamer45 6y agoNice! Are all user inputs mixed into the same stream?
- timdaub 6y agoYes 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
- streamer45 6y agoOh I see. Server side mixing would probably be a good option to help it scale better. Cool stuff anyway :)
- timdaub 6y agoI 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
- daniellarusso 6y agoSo, is this like a giant party line? https://en.m.wikipedia.org/wiki/Party_line_(telephony) https://en.m.wikipedia.org/wiki/Party_line_(telephony)