diff --git a/dashboard/src/common-components/video/VideoPlayer.vue b/dashboard/src/common-components/video/VideoPlayer.vue index 0b46af2d0..f19397e0a 100644 --- a/dashboard/src/common-components/video/VideoPlayer.vue +++ b/dashboard/src/common-components/video/VideoPlayer.vue @@ -54,10 +54,10 @@ const playerWidth = ref(null); const playerHeight = ref(null); const isConfiguredVideoSize = computed(() => playerWidth.value && playerHeight.value) const resolution = computed(() => { - if (!videoPlayerSizeInStorage?.value) { + if (!playerWidth?.value || !playerHeight?.value) { return '' } - return `${videoPlayerSizeInStorage.value.width} x ${videoPlayerSizeInStorage.value.height}` + return `${playerWidth.value} x ${playerHeight.value}` }) const isResizing = ref(false); @@ -167,6 +167,9 @@ const createResizeSupport = () => { function stopResize() { window.removeEventListener('mousemove', resize) isResizing.value = false + if (playerWidth.value && playerHeight.value) { + announcer.polite(`Resized the video player to ${playerWidth.value} x ${playerHeight.value}`) + } } } @@ -193,7 +196,7 @@ const createResizeSupport = () => {