Open CaleoSystems opened 7 months ago
Which streaming server / library are you using?
Hi Chris,
I am using : const http = require('http'); ... ... const src = fs.createReadStream(fileName); res.writeHead(200, {'Content-Type':'audio/wav','Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'OPTIONS, POST, GET'}); src.pipe(res);
The waveform is generated using "audiowaveform".
Node v18.16.0
Thanks.
Thanks. Seeking probably isn't working because the browser isn't caching all the audio, and it can only seek within time regions it has cached. For that to work, you can serve the audio as a static file, so the browser can request the time regions it wants to play (see https://github.com/bbc/peaks.js/blob/master/doc/faq.md).
Chris, I really appreciate your help.
This problem is not happening on Firefox, I will try some fix according to the reference you mentioned.
Thank you very much.
Discussed in https://github.com/bbc/peaks.js/discussions/514