1
0

Update videoSync.html

Adding automatically scaling entity to handle aspect ratio of video playing.
This commit is contained in:
Darlingnotin 2024-02-06 14:22:31 -05:00 committed by GitHub
parent b719f32cf3
commit db5730c8a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);