Skip to content

Commit

Permalink
fix: stop all players blocking player at the pause state
Browse files Browse the repository at this point in the history
  • Loading branch information
dprevost-LMI committed Nov 18, 2024
1 parent b397be7 commit 1f3a0bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Waveform/Waveform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ export const Waveform = forwardRef<IWaveformRef, IWaveform>((props, ref) => {
);
}
} catch (error) {
// If the player is not more initialized, the below will unblock the player
await stopPlayerAction();
return Promise.reject(error);
}
} else {
Expand Down

0 comments on commit 1f3a0bf

Please sign in to comment.