ts fix
This commit is contained in:
@@ -177,6 +177,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) {
|
||||
if (!video) return
|
||||
|
||||
function update() {
|
||||
if (!video) return
|
||||
const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video)
|
||||
if (subtitlePosition === 'bottom') {
|
||||
setOffset(Math.max(128, fitBottom + 32))
|
||||
|
||||
Reference in New Issue
Block a user