[Webkit-unassigned] [Bug 196000] New: [WPE] Audio element with a streaming source loops indefinitely
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 20 06:40:14 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=196000
Bug ID: 196000
Summary: [WPE] Audio element with a streaming source loops
indefinitely
Product: WebKit
Version: Other
Hardware: Other
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WPE WebKit
Assignee: webkit-unassigned at lists.webkit.org
Reporter: softrobot at avner.us
CC: bugs-noreply at webkitgtk.org
Hi!
I've encountered a problem with streaming audio using an HTML Audio element on WPE Webkit.
I am using the latest WPE 2.22.5 on Raspberry Pi 3 with Buildroot / musl toolkit, powered by Cog and an rdk backend (web audio & media apis enabled).
When streaming the audio from a server, the browser keeps looping the audio, repeatedly making requests for the URL.
On my desktop, the audio plays only once. I prepared an example here:
http://softbot.avner.us/test/
The server runs Node.JS and pipes the audio file like so:
app.get('/api/stream', (req, res) => {
res.type("audio/mpeg");
fs.createReadStream("public/test/speak.mpga").pipe(res);
}
The client streams it like so:
let speech = document.createElement('audio');
speech.type = 'audio/mpeg';
speech.src = '/api/stream';
speech.play();
I noticed however that if I set the source to an actual file on the server, where the content-length is known and the transfer is not chunked, the audio only plays once. For example here:
http://softbot.avner.us/test/file.html
My buildroot config can be found here:
https://github.com/Avnerus/softbot-buildroot/blob/softbot/configs/raspberrypi3_softbot_defconfig
Thank you!
/Avner
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190320/eed47b4a/attachment.html>
More information about the webkit-unassigned
mailing list