add new xapi code, play pause publish fixes
lint the state