modified player.m added stop and snapshot