Add the synchronization between Ui and Video player