初始化报错
Opened this issue · 0 comments
zhanglijie5997 commented
Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
Future _create() async {
RtcEngine engine = await RtcEngine.create('771d911fad6380e5ad3c558380267e08');
print(engine);
engine.setEventHandler(RtcEngineEventHandler(
error: (err) {
print('报错了___$err');
},
joinChannelSuccess: (String channel, String uid, int elapsed) {
print('joinChannelSuccess ${channel} ${uid}');
setState(() {
// _joined = true;
});
}, userJoined: (String uid, int elapsed) {
// print('userJoined ${uid}');
setState(() {
// _remoteUid = uid;
});
}, userOffline: (String uid, UserOfflineReason reason) {
// print('userOffline ${uid}');
setState(() {
// _remoteUid = null;
});
}));
}