mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01: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}
|
className={className}
|
||||||
playsInline
|
playsInline
|
||||||
preload="auto"
|
preload="auto"
|
||||||
onLoadedData={onPlaying}
|
onLoadedData={() => {
|
||||||
onLoadedMetadata={handleLoadedMetadata}
|
handleLoadedMetadata?.();
|
||||||
|
onPlaying?.();
|
||||||
|
}}
|
||||||
muted={!audioEnabled}
|
muted={!audioEnabled}
|
||||||
onError={() => {
|
onError={() => {
|
||||||
if (wsRef.current) {
|
if (wsRef.current) {
|
||||||
|
Loading…
Reference in New Issue
Block a user