Skip to content

Commit

Permalink
Merge pull request #1444 from LandrAudio/fix/buffering_loading_state
Browse files Browse the repository at this point in the history
fix: set state to loading when sound is buffering
  • Loading branch information
goldfire authored Jun 13, 2021
2 parents ddb34c3 + 6161691 commit 8c1e020
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,11 @@
playHtml5();
} else {
self._playLock = true;
self._state = 'loading';

var listener = function() {
self._state = 'loaded';

// Begin playback.
playHtml5();

Expand Down

0 comments on commit 8c1e020

Please sign in to comment.