rx-player
Version:
Canal+ HTML5 Video Player
10 lines (8 loc) • 415 B
text/typescript
import { isSafariMobile } from "./browser_detection";
/**
* On safari mobile (version 17.1.2) seeking too early cause the video to never buffer
* media data. Using delaying mechanisms such as `setTimeout(fn, 0)` defers the seek
* to a moment at which safari should be more able to handle a seek.
*/
const canSeekDirectlyAfterLoadedMetadata = !isSafariMobile;
export default canSeekDirectlyAfterLoadedMetadata;