question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Static play API cuts off sounds in Chrome 67

See original GitHub issue

Issue Details

  • Version used: 1.0.0

  • Describe whats happening (Include any relevant console errors, a Gist is preferred for longer errors):

Note, this issue is not about Chrome’s auto-play policy change, though it may relate to their rollback.

Using createjs.Sound.registerSound/createjs.Sound.play to play a sequence of MP3s will occasionally cause audio to cut off. Investigating further I found that there’s a correlation between advancing sounds while Chrome’s speaker icon is fading out. (i.e. the AudioContext disconnecting) The issue will not manifest if you click through very rapidly or conversely, wait for the previous source to fully disconnect.

  • OS & Browser version: macOS High Sierra 10.13.4 / Chrome 67.0.3396.79. Additional reports on Chrome/Windows

  • Do you know of any workarounds?

No, however attempting to console.log instance.sourceNode (even while DevTools are closed) causes the problem not to manifest, as though the additional function calls were enough to defer the event to a subsequent frame in the event loop.

I’m hoping switching to PreloadJS’ LoadQueue might not be subject to the same issue and will try that next.

  • Provide any extra details that will help us fix your issue. Including a link to a [CodePen.io]

I’ve created an isolated test case at http://gallery.wi.tt/createjs-chrome-67/. Note that DevTools should not be open. This obviously makes it difficult to debug; In some cases (other than that mentioned above) I’ve found I can console.log certain data and then wait for the issue to reproduce before opening DevTools to see what’s in the console.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lannymcniecommented, Jul 31, 2018

Glad Google sorted it out. Feel free to reopen if the problem persists past Chrome 67.

1reaction
realjckcommented, Jul 31, 2018

Since three years we develop e-learning webapps with CreateJS. Theses apps play audio dialogs all along (With a succession of 10-20 seconds length mp3).

In our case this issue with Chrome 67 was a major one during the last two months. Our e-learning webapps were having sound cuts each minute and they became unusable on Chrome. I had to inform my clients to tell their students to switch to other browsers until Chromium pushes a new version.

I’m glad that this have been fixed, and hope that the Chromium team understood how this bug have appeared to prevent a similar issue from happening again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

305388 - Static/scratching sounds when playing audio in Flash
1. Open any site with audio file to be played in Flash (YT, Google Play Music, etc.) ... 3. What is the expected...
Read more >
How to make audio autoplay on chrome - Stack Overflow
Solution #1. My solution here is to create an iframe <iframe src="audio/source.mp3" allow="autoplay" style="display:none" id="iframeAudio"> ...
Read more >
Audio crackling or completely muted at random times
Either it starts having loud static noise over it or it goes completely off/muted. The crackling/static is not continuous, but matching the ...
Read more >
Google Chrome version history - Wikipedia
Google Chrome is a freeware web browser developed by Google LLC. The development process is split into different "release channels", each working on...
Read more >
Firefox and Chrome are squaring off over ad-blocker extensions
Google has long had security concerns about Web Request and has worked to cut it out of the most recent extension standard, called...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found