Skip to content

Commit caeb622

Browse files
committed
fix: do not start player when recording
1 parent 87c0ff0 commit caeb622

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/src/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ const RenderListItem = React.memo(
7272
finishMode: FinishMode.stop,
7373
});
7474
} else {
75+
// If we are recording do nothing
76+
if (currentPlayer.currentState === RecorderState.recording) {
77+
return;
78+
}
79+
7580
// Always stop current player if it was playing
7681
if (currentPlayer.currentState === PlayerState.playing) {
7782
await currentPlayingRef?.current?.stopPlayer();

0 commit comments

Comments
 (0)