An ATproto social media client -- with an independent Appview.

[Video] Revert safari hackfix (#5367)

authored by samuel.fm and committed by

GitHub 94e7bfbe 58b1d932

-7
-7
src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
··· 1 1 import React, {useCallback, useEffect, useRef, useState} from 'react' 2 2 3 - import {isSafari} from '#/lib/browser' 4 3 import {useVideoVolumeState} from '../../VideoVolumeContext' 5 4 6 5 export function useVideoElement(ref: React.RefObject<HTMLVideoElement>) { ··· 38 37 const handleTimeUpdate = () => { 39 38 if (!ref.current) return 40 39 setCurrentTime(round(ref.current.currentTime) || 0) 41 - // HACK: Safari randomly fires `stalled` events when changing between segments 42 - // let's just clear the buffering state if the video is still progressing -sfn 43 - if (isSafari) { 44 - if (bufferingTimeout) clearTimeout(bufferingTimeout) 45 - setBuffering(false) 46 - } 47 40 } 48 41 49 42 const handleDurationChange = () => {