Introduction

When a call or live broadcast ends, you can gather feedback on the quality of experience to improve your product by asking your users to rate the call or live broadcast.

The Agora SDK provides methods for you to collect your users' ratings and comments on the calls.

After the rating function is implemented, you can see your users' ratings in Agora Analytics, as shown in the figure below:

Implementation

Before proceeding, ensure that you implement a basic video call or live broadcast in your project. See Start a Call/Start a Live Broadcast for details.

To rate a call:

  1. When you are in the channel, call the getCallId method to get current call ID.
  2. After leaving the channel, call the rate method to rate the call.

Sample code

// Java
// Get current call ID. Rate 5 and give description.
String callId = rtcEngine.getCallId();
rtcEngine.rate(callId, 5, "This is an awesome call!");

API reference