Skip to content

Commit 89bd0c8

Browse files
committed
Round player width and height to fix int32 error
1 parent 2d8a390 commit 89bd0c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,8 @@ export default defineComponent({
12351235
pipWindowHeight.value = pipWindow.height * devicePixelRatio
12361236
}
12371237

1238-
const playerWidth = computed(() => pipWindowWidth.value ?? videoElementWidth.value)
1239-
const playerHeight = computed(() => pipWindowHeight.value ?? videoElementHeight.value)
1238+
const playerWidth = computed(() => Math.round(pipWindowWidth.value ?? videoElementWidth.value))
1239+
const playerHeight = computed(() => Math.round(pipWindowHeight.value ?? videoElementHeight.value))
12401240

12411241
// #endregion video event handlers
12421242

0 commit comments

Comments
 (0)