Added server side code for auto_play
Added client side code for auto_play