added possibility to set format of videoPlayer

is necessary because if width and height of video is 100% means responsive,
the width and height of previewImage has to be calculated with contentWidth and format