onplay/onpause events added. fix video width/height