🎥 Make videos programmatically with React
add comment why we are doing it
Jonny Burger79c7527068d6
diff --git a/packages/core/src/video/VideoForDevelopment.tsx b/packages/core/src/video/VideoForDevelopment.tsxindex f656bc4a01..da45c907e2 100644--- a/packages/core/src/video/VideoForDevelopment.tsx+++ b/packages/core/src/video/VideoForDevelopment.tsx@@ -178,6 +178,9 @@ const VideoForDevelopmentRefForwardingFunction: React.ForwardRefRenderFunction<// if a seek is triggered before `loadedmetadata` is fired,// the video will not seek, even if `loadedmetadata` is fired afterwards.+ // Also, this needs to happen in a useEffect, because otherwise+ // the SSR props will be applied.+if (isIosSafari()) {current.preload = 'metadata';} else {