Add ResizeObserver polyfill for safari (#3142)

This commit is contained in:
WithoutPants
2022-11-17 13:50:41 +11:00
committed by GitHub
parent c1f271fc52
commit 4ff163d375
4 changed files with 13 additions and 2 deletions

View File

@@ -3,4 +3,4 @@ import videojs from "video.js";
export const VIDEO_PLAYER_ID = "VideoJsPlayer";
export const getPlayerPosition = () =>
videojs.getPlayer(VIDEO_PLAYER_ID).currentTime();
videojs.getPlayer(VIDEO_PLAYER_ID)?.currentTime();