Remove unnecessary code. Fire play/pause events after ready callback.