Prepare code to supports spectrum visualization and video playback