From db5730c8a8d7c2781478beecc0dd16fefd9c3f3c Mon Sep 17 00:00:00 2001 From: Darlingnotin Date: Tue, 6 Feb 2024 14:22:31 -0500 Subject: [PATCH] Update videoSync.html Adding automatically scaling entity to handle aspect ratio of video playing. --- videoSync.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videoSync.html b/videoSync.html index 60e0866..1d2d496 100644 --- a/videoSync.html +++ b/videoSync.html @@ -111,7 +111,8 @@ videoUrl: messageData.videoUrl, length: v.duration, timeStamp: v.currentTime, - myTimeStamp: myTimeStamp + myTimeStamp: myTimeStamp, + aspectRatio: v.videoWidth / v.videoHeight }; EventBridge.emitWebEvent(JSON.stringify(readyEvent)); clearInterval(videoLoadedSendMessageInterval);