AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

How to connect native client to web client ? #145

Open iamsb1896 opened 3 years ago

iamsb1896 commented 3 years ago

How to connect native client to web client ?

Hi, We are trying to build a multiplatform system using Agora-SDK. We are able to see the client joined from web side to native but Native Client is visible on Web ?

Native Platform : Android (Flutter) Web Browser: Chrome

Web Client

var client = AgoraRTC.createClient({ mode: "live", codec: "h264" });

Native

_engine = await RtcEngine.create(appId);
await _engine.enableWebSdkInteroperability(true);
yoreland commented 3 years ago

Can you provide a channel name? We will check background to see what happened.

iamsb1896 commented 3 years ago

Channel Name: "demo" Agora ID : "521b45c7bd45402f92af301fc4096aee" Temp Token: "006521b45c7bd45402f92af301fc4096aeeIAAPjfyYofjo4+WKy52+4/zbIf564VUIXLZZBUHw7meCwKDfQtYAAAAAEABc42rkwRyxYAEAAQDCHLFg"

The React Code is working perfectly but we Vanilla JS code is showing User joined by Native SDK ? We implemented event listeners as

client.on("user-published", handleUserPublished);

"handleUserPublished" is not getting triggered when Native User join session...

iamsb1896 commented 3 years ago

Can you provide a channel name? We will check background to see what happened.

Can you provide a channel name? We will check background to see what happened.

Channel Name: "demo" Agora ID : "521b45c7bd45402f92af301fc4096aee" Temp Token: "006521b45c7bd45402f92af301fc4096aeeIAAPjfyYofjo4+WKy52+4/zbIf564VUIXLZZBUHw7meCwKDfQtYAAAAAEABc42rkwRyxYAEAAQDCHLFg"

The React Code is working perfectly but we Vanilla JS code is showing User joined by Native SDK ? We implemented event listeners as

client.on("user-published", handleUserPublished);

"handleUserPublished" is not getting triggered when Native User join session...

ankitbrahmbhatt1997 commented 3 years ago

@iamsb1896 any solution to this ?

iamsb1896 commented 3 years ago

@iamsb1896 any solution to this ?

Nope.