Add get_server_info function
Refactory playback.