Update videoSync.html
Adding automatically scaling entity to handle aspect ratio of video playing.
This commit is contained in:
parent
b719f32cf3
commit
db5730c8a8
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user