mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-25 18:30:56 -06:00
save video dimensions in onLoadedData instead of onLoadedMetadata (#11545)
This commit is contained in:
parent
c2eac10925
commit
7a9ee63bd3
@ -303,8 +303,10 @@ function MSEPlayer({
|
||||
className={className}
|
||||
playsInline
|
||||
preload="auto"
|
||||
onLoadedData={onPlaying}
|
||||
onLoadedMetadata={handleLoadedMetadata}
|
||||
onLoadedData={() => {
|
||||
handleLoadedMetadata?.();
|
||||
onPlaying?.();
|
||||
}}
|
||||
muted={!audioEnabled}
|
||||
onError={() => {
|
||||
if (wsRef.current) {
|
||||
|
Loading…
Reference in New Issue
Block a user