added extra check for record,stop record,play,stopplay