Skip to content

初始化报错 #1

@zhanglijie5997

Description

@zhanglijie5997

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;
	        });
	      }));
      
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions