Added a fix for auto-resolution so it doesn't make the videoplayer too small.