Skip to content

Commit 8c1e020

Browse files
authored
Merge pull request #1444 from LandrAudio/fix/buffering_loading_state
fix: set state to loading when sound is buffering
2 parents ddb34c3 + 6161691 commit 8c1e020

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/howler.core.js

+3
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,11 @@
976976
playHtml5();
977977
} else {
978978
self._playLock = true;
979+
self._state = 'loading';
979980

980981
var listener = function() {
982+
self._state = 'loaded';
983+
981984
// Begin playback.
982985
playHtml5();
983986

0 commit comments

Comments
 (0)