clean the server side code of video session