forked from Github/frigate
save video dimensions in onLoadedData instead of onLoadedMetadata (#11545)
This commit is contained in:
@@ -303,8 +303,10 @@ function MSEPlayer({
|
||||
className={className}
|
||||
playsInline
|
||||
preload="auto"
|
||||
onLoadedData={onPlaying}
|
||||
onLoadedMetadata={handleLoadedMetadata}
|
||||
onLoadedData={() => {
|
||||
handleLoadedMetadata?.();
|
||||
onPlaying?.();
|
||||
}}
|
||||
muted={!audioEnabled}
|
||||
onError={() => {
|
||||
if (wsRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user