Skip to content

Commit

Permalink
Remove unnecessary addEventListener call for video (#7433)
Browse files Browse the repository at this point in the history
  • Loading branch information
IslamRustamov authored Jan 14, 2025
1 parent 82881d1 commit 1fc889b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ export function useVideoElement(ref: React.RefObject<HTMLVideoElement>) {
ref.current.addEventListener('ended', handleEnded, {
signal: abortController.signal,
})
ref.current.addEventListener('volumechange', handleVolumeChange, {
signal: abortController.signal,
})

return () => {
abortController.abort()
Expand Down

0 comments on commit 1fc889b

Please sign in to comment.