Minor fixes videoplayer resolution and delete repeated code.