- Android
- iOS
- JavaScript
- Flutter
- ReactNative
When a one-to-one call ends, the IM system automatically sends this message to the corresponding private conversation to identify the call record.
The call-end message (CallFinishNotifyMessage) has the contentType value jg:callfinishntf.
| Property | Type | Description | Version |
|---|---|---|---|
| finishNotifyType | CallFinishNotifyType | Call-end type | 1.8.2 |
| duration | long | Call duration (ms). | 1.8.2 |
| mediaType | CallMediaType | Call type. | 1.8.2 |
public enum CallFinishNotifyType {
/// caller canceled
CANCEL(0),
/// callee rejected
REJECT(1),
/// callee did not answer
NO_RESPONSE(2),
/// call ended
COMPLETE(3);
}
When a one-to-one call ends, the IM system automatically sends this message to the corresponding private conversation to identify the call record.
The call-end message (JCallFinishNotifyMessage) has the contentType value jg:callfinishntf.
| Property | Type | Description | Version |
|---|---|---|---|
| finishNotifyType | JCallFinishNotifyType | Call-end type | 1.8.2 |
| duration | long long | Call duration (ms). | 1.8.2 |
| mediaType | JCallMediaType | Call type. | 1.8.2 |
typedef NS_ENUM(NSUInteger, JCallFinishNotifyType) {
// caller canceled
JCallFinishNotifyTypeCancel = 0,
// callee rejected
JCallFinishNotifyTypeReject = 1,
// callee did not answer
JCallFinishNotifyTypeNoResponse = 2,
//call ended
JCallFinishNotifyTypeComplete = 3
};
When a one-to-one call ends, the IM system automatically sends this message to the corresponding private conversation to identify the call record.
The call-end message listener receives MessageType.COMMAND_RTC_1V1_FINISHED.
message.content
let content = message.content;
/*
duration: call duration
media_type: 0 indicates audio; 1 indicates video
reason: 0: caller canceled; 1: callee rejected; 2: callee did not answer; 3: call ended
*/
let { duration, media_type, reason } = content;
When a one-to-one call ends, the IM system automatically sends this message to the corresponding private conversation to identify the call record.
The call-end message (CallFinishNotifyMessage) has the contentType value jg:callfinishntf.
| Property | Type | Description | Version |
|---|---|---|---|
| finishNotifyType | int | Call-end type | 1.8.2 |
| duration | int | Call duration (ms). | 1.8.2 |
| mediaType | int | Call type. | 1.8.2 |
// call-end type
static const int typeCancel = 0;
static const int typeReject = 1;
static const int typeNoResponse = 2;
static const int typeComplete = 3;
class CallMediaType {
static const int voice = 0;
static const int video = 1;
}
When a one-to-one call ends, the IM system automatically sends this message to the corresponding private conversation to identify the call record.
The call-end message has the contentType value jg:callfinishntf.
| Property | Type | Description | Version |
|---|---|---|---|
| finishNotifyType | number | Call-end type | 1.0.0 |
| duration | number | Call duration (ms). | 1.0.0 |
| mediaType | number | Call type. | 1.0.0 |
// call-end type
enum CallFinishNotifyType {
CANCEL = 0, // caller canceled
REJECT = 1, // callee rejected
NO_RESPONSE = 2, // callee did not answer
COMPLETE = 3 // call ended
}
enum CallMediaType {
VOICE = 0, // audio
VIDEO = 1 // video
}