update the client for adapting to different segment and play the output file only once