fixed a bug in videoplayer and added several features