$ 0 0 implement in pause method if not is playing when pause needed to call play method and sleep thread for some milliseconds before pause.