Without this line, I found that there was flash of random image noise when the preview started. So now we wait until the stream has loaded before making the viewfinder visible.