Skip to content

Commit

Permalink
save video dimensions in onLoadedData instead of onLoadedMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed May 26, 2024
1 parent c2eac10 commit 9835513
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/components/player/MsePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,10 @@ function MSEPlayer({
className={className}
playsInline
preload="auto"
onLoadedData={onPlaying}
onLoadedMetadata={handleLoadedMetadata}
onLoadedData={() => {
handleLoadedMetadata?.();
onPlaying?.();
}}
muted={!audioEnabled}
onError={() => {
if (wsRef.current) {
Expand Down

0 comments on commit 9835513

Please sign in to comment.