Browse Source

No longer need to stop before changing selection

The issue is fixed in waveform-playlist instead.
tags/v0.1.0
Gerben 5 years ago
parent
commit
afce038a7e
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      app/audio-player/contentscript.js

+ 0
- 6
app/audio-player/contentscript.js View File

@@ -72,12 +72,6 @@ export default async function init() {


// Bind window hash change to update player // Bind window hash change to update player
window.addEventListener('hashchange', async () => { window.addEventListener('hashchange', async () => {
if(playlist.isPlaying()) {
eventEmitter.emit('stop')
// pause needs a small delay, coz the lib doesn't
// update player view (drawRequest) when isPlaying() = true.
await delay(10);
}
await syncFragmentToSelection(); await syncFragmentToSelection();
eventEmitter.emit('play'); eventEmitter.emit('play');
}); });


Loading…
Cancel
Save