Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement audio data live streaming with periodical meta inserted in the stream (ICY/Icecast protocol) using StreamingResponse. But while debugging figured out that amount of raw audio bytes sent and received by client (goal is for AudioPlayer, ICY supported) are different. https://stackoverflow.com/q/79142077/15080117
ICY is rather strict protocol with fixed bytes length (icy-metaint) and after every this block metadata inserted of 0+ length.
https://thecodeartist.blogspot.com/2013/02/shoutcast-internet-radio-protocol.html
I looked at the source code and can see there is
{"type": "http.response.body", "body": chunk, "more_body": True}
message sent format.Help me please figure out how can I implement custom StreamingResponse to send only raw bytes (just after the first block with headers)?
Beta Was this translation helpful? Give feedback.
All reactions