ngx-agora icon indicating copy to clipboard operation
ngx-agora copied to clipboard

CANNOT_MEET_AREA_DEMAND

Open maddentist opened this issue 4 years ago • 2 comments

Describe the bug I'm trying to implement you modul step by steps. It stops at this.agoraService.client.join(null, '1000', null, (uid) => {}); with CANNOT_MEET_AREA_DEMAND error message. Apparently, the area must be set as per aogra IO documentation but I can find it nowhere in tour code/docs

To Reproduce Follow the implentation explaination on the main github page for this project from outside the US.

Expected behavior It should work

maddentist avatar Sep 10 '20 14:09 maddentist

I have this problem also. In this link https://stackoverflow.com/questions/63974051/get-server-node-failed-cannot-meet-area-demand-https-webrtc2-ap-web-2-agorai/64009870?noredirect=1#comment113221314_64009870 he suggested to me adding areaCode property like this: this.client = this.ngxAgoraService.createClient({ mode: 'rtc', codec: 'h264',areaCode:'GLOBAL' }); but when i add this code i am getting this error: Error TS2345 (TS) Argument of type '{ mode: "rtc"; codec: "h264"; areaCode: string; }' is not assignable to parameter of type 'ClientConfig'. Object literal may only specify known properties, and 'areaCode' does not exist in type 'ClientConfig'.

adigeleon avatar Sep 28 '20 06:09 adigeleon

adding "areaCode: string[]" in client-config.model.ts file works.

adigeleon avatar Sep 29 '20 07:09 adigeleon