Fixed the bug of the viewer input switch during playback