Using coroutine for player recording,works ok now