really good cleaned up and refactored
works properly, but the only thing need to do is fix clipping on rtp playback