title: How do I correctly use AVPlayer so it doesn't show white screen before playing video?
body: <p>Every time, when I try to playing a megabyte video using <code>AVPlayer</code>, it initially shows a white screen for a second and then starts the video. </p>
  
  <p>Why is this happening if the video is already cached? Is there a way to stop this from happening, so that it goes straight to the video without displaying a white screen?</p>
  
  <p>I tried using <code>AVPlayer</code>'s <code>isReady</code> to check the status of <code>AVPlayer</code> and play video only when it's ready, but it still displays the white screen.</p>
  
  <p>Also every time when I try to get the video duration of the video that's about to play through <code>AVPlayer</code> I keep getting 0.0 seconds initially, so I am not able to add a timer to the video either because I can't get the video duration because it keeps displaying a white screen for a second.</p>