fix defect that video component should not be disposed when resizing window