Akchy / Agora-Live-Broadcasting

As an Agora Student Ambassador, this project is to create a Live Video Broadcast using Agora SDK in Flutter
57 stars 58 forks source link

Struggling to get video call going. #12

Closed kiwicmc closed 3 years ago

kiwicmc commented 3 years ago

Hi, I've upgraded the demo to use the latest Agora and Firebase Flutter plugins (happy to issue a pull request when it's all going)

I'm not sure what is the expected flow to initiate a call. I have the app installed on an iPhone and have registered as a user (x2). I have another instance of the app installed on an iPhone simulator (which doesn't have a camera, not possible with the Simulator), that user is x3.

Once I register, I am no longer prompted to login, and the logout code is commented out (as cloned from this github repo).

On both devices below the AppBar I see the Avatar that I registered with on that device and the userName beneath, no other Avatars are displayed. When I click on either Avatar I get the LIVE icon. When I click on the +Person icon, I get Go Live With, but with No Viewers. I would expect to see x3 if I and logged in as x2.

I can only guess I've broken something in my port (I never see liveuser in the Cloud Firestore console, although I see users and user_email), or when I was trying to get things going an init stage was missed. If you could just let me know the expected flow then I can go back over my changes.

Thanks, Chris

kiwicmc commented 3 years ago

Had set the Agora App setting to use the AppID AND Token and didn't have the Token value in for joinChannel, so event wasn't firing (would have been good to get an invalid token message I guess...)