I'm trying to get audio stream data from IP camera using JavaScript fetch API. The problem is that on standard http request this IP camera responses with audio data without any HTTP header. Check this my another question for details with excellent answer:
https://stackoverflow.com/a/75474493/6612987
I'm using standard code like this:
(async () => {
let response = await fetch(URL);
const reader = response.body.getReader();
//do something
})()
This code work without any errors in Firefox, but Chromium based browsers give me: ERR_INVALID_HTTP_RESPONSE on fetch.
Is this possible any workaround for fetch API or other JavaScript alternatives to get data for non standard response?