Call handleLoadedMetadata too if not playing yet

This commit is contained in:
Josh Hawkins 2024-07-02 15:35:10 -05:00
parent 88693c19e5
commit adffc1d6d0

View File

@ -387,6 +387,7 @@ function MSEPlayer({
onProgress={() => { onProgress={() => {
if (!isPlaying) { if (!isPlaying) {
setIsPlaying(true); setIsPlaying(true);
handleLoadedMetadata?.();
onPlaying?.(); onPlaying?.();
} }
if (onError != undefined) { if (onError != undefined) {