WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
204228
HTMLAudioElement currentTime out of sync with actual audio when linked to AudioContext
https://bugs.webkit.org/show_bug.cgi?id=204228
Summary
HTMLAudioElement currentTime out of sync with actual audio when linked to Aud...
sam
Reported
2019-11-15 09:16:10 PST
It seems that when an HTMLAudioElement is linked up to AudioContext (via createMediaElementSource), the audio element's currentTime is out of sync with playback. Steps to reproduce: 1. Go to
https://codesandbox.io/s/safari-time-delay-9hokn
2. Click the play button in the audio control, confirm that the tones occur exactly on the second 3. Reload the page 4. Click the “Connect to AudioContext” button 5. Click the play button You'll then see that the timing is off. This doesn't occur in Chrome nor Firefox.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-11-19 16:22:00 PST
<
rdar://problem/57341556
>
Brian Peiris
Comment 2
2019-12-20 17:43:31 PST
We're running into this problem on
https://hubs.mozilla.com/
with videos as well. We use createMediaElementSource to implement 3D positional audio in our WebGL app. I've adapted Sam's test to demonstrate the bug with videos as well, where the delay is much more prominent.
https://brianpeiris.github.io/safari-video-source-test/
I reproduce on a 2018 13-inch MacBook Pro, with macOS 10.14.6 and Safari 13.0.4.
Tero Parviainen
Comment 3
2021-11-08 01:33:18 PST
This is still an issue. Tested on Safari 15.1 on Monterey, and iOS 15.0.2.
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