I have a Node JS server that transfers (adds) OGG files to several HTTP responses with HTML5 audio on the other end. Everything works fine in Firefox, however Chrome seems to kill the answer after the first OGG file was written (but not weird Mp3).
Here is a snippet of the current code:
res.writeHead(200, {
"Content-Type": "audio/ogg",
'Pragma': 'no-cache',
'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0',
'Connection': 'keep-alive',
'Transfer-Encoding': 'chunked',
});
res.write(audioData);
Any ideas?
dnadd source
share