This commit is kind of a hack to force MediaElement.js to show a progress bar when we are loading a song. Normally, in vanilla HTML5 MediaElement, we'd explicitely call 'play()' when loading a song. Here, we cannot ensure playback will work well if we don't wait for the 'canplay' event to be fired, but the progress bar won't show up without 'play()'... This commit emits a fake 'waiting' event to let the MEJS know that it should update the UI.master
parent
5a72322772
commit
2e0134259d
Loading…
Reference in new issue