WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
160692
AudioBuffer duration is wrong
https://bugs.webkit.org/show_bug.cgi?id=160692
Summary
AudioBuffer duration is wrong
Daniele Tassone
Reported
2016-08-09 08:45:46 PDT
Created
attachment 285642
[details]
Chrome/Safari Technology Preview 1) Load 1 chunk of my MP3 (I have 1 mp3 split in 5 chunks) 2) Decode the chunk with "decodeAudioData" 3) Now try to read .duration for this chunk a) On chrome 48.32 seconds b) On Firefox is 48.32 seconds b) On Safari Technology Preview is 268.70 seconds It look like Chrome/Firefox give me the chunk duration instead Safari is giving back the duration of entirely song (268 seconds is exactly the song duration for all chunks).
Attachments
Chrome/Safari Technology Preview
(66.39 KB, image/jpeg)
2016-08-09 08:45 PDT
,
Daniele Tassone
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2016-08-09 20:48:03 PDT
Daniele, could you please provide a test case that reproduces the problem?
Daniele Tassone
Comment 2
2016-08-10 01:58:04 PDT
1) Open the link with Safari technology Preview
http://jsfiddle.net/vynvu/201/
2) Wait for "can play" alert 3) Click "play" 4) On Safary technology Preview you will got 277 seconds 5) On Chrome/Firefox you will get 10 seconds
Oscar Dub
Comment 3
2016-11-07 04:34:02 PST
Related issue:
https://bugs.webkit.org/show_bug.cgi?id=157362
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug