From 86a0fc4a3e3b18a1bec12fee3fb872db190ec5d6 Mon Sep 17 00:00:00 2001 From: Malay Raval Date: Sun, 14 Jun 2026 02:50:42 +0000 Subject: [PATCH] fix: prevent Wistia crash when src changes while playing Add a key prop based on src to the Player component to force a complete remount when the video source changes. This ensures the old Wistia player instance is properly destroyed before creating a new one, preventing crashes that occur when switching sources while playing. Fixes #2000 --- src/Player.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.tsx b/src/Player.tsx index c88fab27..9fb42049 100644 --- a/src/Player.tsx +++ b/src/Player.tsx @@ -81,6 +81,7 @@ const Player: Player = React.forwardRef((props, ref) => { return (