Search code examples
flutterquickblox

Quickblox Flutter SDK Example WebRTC doesn't connect


I'm having trouble in the Flutter SDK Example project.

Specifically the WebRTC portion. I'm unable to get a video call connected.

I have the project deployed to two Android devices. One is physical, the other is an emulator.

I updated the credentials.dart to match my application information.

One device/app has user1. Other device/app has user2. With the opponents pointed to each other.

The steps I have performed are as follows:

  1. Settings -> init
  2. Auth -> Login
  3. Chat -> Connect
  4. WebRTC -> init
  5. WebRTC -> Subscribe Events WebRTC
  6. WebRTC -> Call WebRTC

I can see debug info in each app, after I click call, so it seems as though the 'chat' connection is working to deliver the messages.

When I try to 'accept' I get an error that 'id' is a required parameter.

Looking at the example source, it seem the 'sessionId' is only ever set when a call is placed. How would the receiving end ever get the sessionId?

Also, anything like 'enable video' or 'start rendering local' results in a null ref error being displayed in a dialog.


Solution

  • I can confirm the latest SDK (0.2.4-alpha) fixes the issue.

    Also, be sure to grant the Camera and Microphone permissions.