Open seriousm4x opened 2 years ago
@seriousm4x Streaming is supported by using app.Server().StreamRequestBody = true
Full example here: https://github.com/gofiber/recipes/blob/master/stream-request-body/main.go
@seriousm4x has your issue been resolved in the meantime? Have you tried @gaby's suggestion?
@leonklingele All I remember was I couldn't get it to work. I ended up using gin. Sorry.
So I tried to convert a video with ffmpeg and stream the output to the client while encoding. Since fiber doesn't support streaming I tried it with net/http and it works without problems.
Then i found this adaptor and tried to wrap my function inside it but the ffmpeg output never reaches the browser.
I guess that it's got something to do with ResponseWriter.Write() and the adaptor but I don't know what.
Here is the example (make sure to have ffmpeg):