save video dimensions in onLoadedData instead of onLoadedMetadata (#11545)

This commit is contained in:
Josh Hawkins 2024-05-26 18:48:33 -05:00 committed by GitHub
parent c2eac10925
commit 7a9ee63bd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -303,8 +303,10 @@ function MSEPlayer({
className={className}
playsInline
preload="auto"
onLoadedData={onPlaying}
onLoadedMetadata={handleLoadedMetadata}
onLoadedData={() => {
handleLoadedMetadata?.();
onPlaying?.();
}}
muted={!audioEnabled}
onError={() => {
if (wsRef.current) {