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

View File

@ -111,7 +111,8 @@
videoUrl: messageData.videoUrl, videoUrl: messageData.videoUrl,
length: v.duration, length: v.duration,
timeStamp: v.currentTime, timeStamp: v.currentTime,
myTimeStamp: myTimeStamp myTimeStamp: myTimeStamp,
aspectRatio: v.videoWidth / v.videoHeight
}; };
EventBridge.emitWebEvent(JSON.stringify(readyEvent)); EventBridge.emitWebEvent(JSON.stringify(readyEvent));
clearInterval(videoLoadedSendMessageInterval); clearInterval(videoLoadedSendMessageInterval);