Summary: | Long delay before audio starts playing in Safari 11 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ernst <herr.ernst> | ||||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED MOVED | ||||||||
Severity: | Normal | CC: | bfulgham, daniil.pokrovsky, dunstan+webkitbugs, eric.carlson, herr.ernst, jer.noble, peng.liu6, samuel.wemyss, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | Safari 11 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Ernst
2018-01-11 08:17:08 PST
Created attachment 339764 [details]
Safari (left) and Chrome (right) playing a demo from the popular SoundManager audio library
Came here to file the same bug. As the reporter notes, Safari fires the `play` and `playing` events and then seems to download a large amount of data before it decides to fire `canplaythrough` and actually start outputting sound. With my cache cleared I loaded this 2.6mb mp3 http://freshly-ground.com/data/audio/sm2/Figub%20Brazlevič%20-%20Bosnian%20Syndicate.mp3 and sound wasn't played until 2.6mb had been downloaded. In comparison Chrome and Firefox start playing sound seemingly immediately. Here's a video of where I first encountered the problem (I'm sorry this is an external link, but I don't have the original video file any more): https://twitter.com/dunstan/status/991570214541189120 I also saw the problem when using popular sound libraries, such as the SoundManager demo found here http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/ Chrome started playing straight away, while Safari downloaded 2.2mb of the file before playing sound (see attached screenshots). We are also experiencing delay "canplay" and "playing" events are fired, but actual playback only seems to start when Safari buffers the whole track, sometimes it can take 20+ seconds depending on connects. In Chrome and Firefox events are actually fired when playback starts, and playback starts much faster there as they don't wait till entire track will be downloaded. The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'. This relevant team could not reproduce the issue. If you are still experiencing issues in Safari 15, please file a Feedback Report. |