Starter Deal! First 3 month from only $9.9 /month!
Starter Deal! First 3 month from only $9.9 /month!
Grab It Now 
Tencent RTC Blog
Tencent RTC Blog
Tech

Add Call Status Observer in Your Flutter Calling Project

Tencent RTC - Dev Team

Add Call Status Observer in Your Flutter Calling Project.png

Have you ever wondered how to monitor and respond to the call status within your Flutter voice calling or video calling application?

Do you want to easily add call state monitoring into your Flutter calling project?

Tencent RTC provides Tencent RTC Call (TUICallKit) for your Flutter audio/video calling project (Flutter 3.0 or higher version). Whether the video/audio call status is incoming, outgoing, answered, or ended, you can stay informed and take appropriate actions.

Video Tutorial

In this blog post, we will introduce how to listen on any call status you want by the callback method. Join us on this coding journey as we uncover the steps to implement call status listening in your Flutter project.

The Callback Methods We Provide for You

In the `TUICallObserver`, there are several callback methods available. Let me briefly introduce 5 methods of them:

TUICallEngine.instance.addObserver(TUICallObserver(
    onError: (int code, String message) {

    }, onCallBegin: (TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole) {
    
    }, onCallEnd: (TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole, double totalTime) {  


    },, onUserNetworkQualityChanged: (List<TUINetworkQualityInfo> networkQualityList) {
 
    }, onCallReceived: (String callerId, List<String> calleeIdList, String groupId, TUICallMediaType callMediaType) {
    }
));
  • `onCallReceived` for receiving a call.
Set Up
Call
Build App
RTC Engine