SIGN IN SIGN UP

fix: prevent React warnings for unknown event handler properties (#1970)

* Fix: Prevent React warnings for unknown event handler properties

- Filter out ReactPlayer-specific event handlers (onReady, onStart, onPlay, onPause, onEnded, onLoadStart) before passing props to underlying player component
- Prevents React warnings about "Unknown event handler property"
- Maintains full functionality while eliminating console warnings
- Added comprehensive tests to verify the fix
- Backward compatible with no breaking changes

* Add comprehensive tests for event handler filtering

* Simplify test to avoid environment setup issues

* Update src/Player.tsx

Co-authored-by: Wesley Luyten <me@wesleyluyten.com>

---------

Co-authored-by: Wesley Luyten <me@wesleyluyten.com>
R
Ryan Burst committed
55cf5fe30a4059379ccee942bcac16ab201ce615
Parent: 10f0cdc
Committed by GitHub <noreply@github.com> on 8/25/2025, 12:07:17 PM