use the latest api with librtc