pause method checks if video is playing to avoid crash