From 39dd30b76221aac5b6a78ce8d94e4660bd3a8e69 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 1 Jul 2024 03:45:36 +0000 Subject: [PATCH] Cleanup media session handling on the web --- src/Video.web.tsx | 43 ++++++++++++++----------------------------- 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 92146795..6f84683a 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -149,19 +149,7 @@ const Video = forwardRef( nativeRef.current.playbackRate = rate; }, [rate]); - useMediaSession( - source?.metadata, - nativeRef, - useMemo( - () => ({ - seek, - resume, - pause, - }), - [seek, resume, pause], - ), - showNotificationControls, - ); + useMediaSession(source?.metadata, nativeRef, showNotificationControls); return (