support publish and play msg.