about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-07 22:55:03 +0300
committerGitHub <noreply@github.com>2024-10-07 12:55:03 -0700
commit94e7bfbe40ba6766361caaba99feff74a187613a (patch)
tree7f348240dec3811dad1c629a475eacf5eae6b20d /src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
parent58b1d9326d7f5f308746e2471f5a7552bb0db250 (diff)
downloadvoidsky-94e7bfbe40ba6766361caaba99feff74a187613a.tar.zst
[Video] Revert safari hackfix (#5367)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx')
-rw-r--r--src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
index 8aa2d3f7d..f5d90b5f7 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
@@ -1,6 +1,5 @@
 import React, {useCallback, useEffect, useRef, useState} from 'react'
 
-import {isSafari} from '#/lib/browser'
 import {useVideoVolumeState} from '../../VideoVolumeContext'
 
 export function useVideoElement(ref: React.RefObject<HTMLVideoElement>) {
@@ -38,12 +37,6 @@ export function useVideoElement(ref: React.RefObject<HTMLVideoElement>) {
     const handleTimeUpdate = () => {
       if (!ref.current) return
       setCurrentTime(round(ref.current.currentTime) || 0)
-      // HACK: Safari randomly fires `stalled` events when changing between segments
-      // let's just clear the buffering state if the video is still progressing -sfn
-      if (isSafari) {
-        if (bufferingTimeout) clearTimeout(bufferingTimeout)
-        setBuffering(false)
-      }
     }
 
     const handleDurationChange = () => {