💾 Archived View for bbs.geminispace.org › u › lufte › 21930 captured on 2024-12-17 at 15:50:31. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "Streaming Audio using Gemini"
Are you writing your own client? If the server is sendig the file too quickly it is because you are reading it too quickly.
Nov 18 · 4 weeks ago
I find this very interesting, I was thinking of incorporating sound in a game I am making, just short fx clips, did not know ogg was required to make it stream. 😁
🐐 satch [OP] · Nov 18 at 16:46:
@lufte Testing using Lagrange
I've found that piping to "mpv --cache-secs=5 -" works well for most audio/video formats. (I don't know which clients support piping to a command though, maybe not many.)
Yes, it works. Skyjake helped me with it a while ago. There is an extra setting needed in gmcapsule to allow streaming. Was able to run icecast radio via gemini.
For server-side, imho, it simpler to use socket proxy for any http streaming server e.g. icecast
I did something similar for NEX protocol (TLS-less) with Nginx also:
# /etc/nginx/nginx.conf stream { server { listen 1915; proxy_pass 127.0.0.1:1915; } }
About client-side, close to work about this feature in my browser, seems Lagrange developers did great work around streaming, because this question require manual memory buffer management, multiple codecs routing, timing control and other things.
@ps Developer*, far as I know skyjake has made the whole client himself, as well as BBS, GMCapsule and Cosmos.
@HanzBrix wondeful, the Father of Geminispace!
I spent about 1k hours for browser implementation and did nothing yet comparing to Lagrange features. Only 100% love to geminispace make this work amount possible @skyjake
He’s a real champion and the Gemini community is lucky to have him.
Streaming Audio using Gemini — How have people implemented audio streaming? I've been trying to implement this and running into lots of issues. Either the server sends audio to the client too quickly as if the client is loading a static file, or Lagrange won't play the audio at all. I am not sure how to debug this or what others have done.