- Android
- iOS
- JavaScript
- Flutter
1v1 通话结束时 IM 系统会自动往对应的单聊会话中发送此类消息,用于标识通话记录。 通话结束消息 (CallFinishNotifyMessage)对应的 contentType 是 "jg:callfinishntf";
| 属性名 | 类型 | 说明 | 版本 |
|---|---|---|---|
| finishNotifyType | CallFinishNotifyType | 通话结束类型 | 1.8.2 |
| duration | long | 通话时长,单位(ms) | 1.8.2 |
| mediaType | CallMediaType | 通话类型 | 1.8.2 |
public enum CallFinishNotifyType {
/// 主叫取消
CANCEL(0),
/// 被叫拒绝
REJECT(1),
/// 被叫无应答
NO_RESPONSE(2),
/// 通话结束
COMPLETE(3);
}
1v1 通话结束时 IM 系统会自动往对应的单聊会话中发送此类消息,用于标识通话记录。 通话结束消息 (JCallFinishNotifyMessage)对应的 contentType 是 "jg:callfinishntf";
| 属性名 | 类型 | 说明 | 版本 |
|---|---|---|---|
| finishNotifyType | JCallFinishNotifyType | 通话结束类型 | 1.8.2 |
| duration | long long | 通话时长,单位(ms) | 1.8.2 |
| mediaType | JCallMediaType | 通话类型 | 1.8.2 |
typedef NS_ENUM(NSUInteger, JCallFinishNotifyType) {
// 主叫取消
JCallFinishNotifyTypeCancel = 0,
// 被叫拒绝
JCallFinishNotifyTypeReject = 1,
// 被叫无应答
JCallFinishNotifyTypeNoResponse = 2,
//通话结束
JCallFinishNotifyTypeComplete = 3
};
暂未支持
1v1 通话结束时 IM 系统会自动往对应的单聊会话中发送此类消息,用于标识通话记录。 通话结束消息 (CallFinishNotifyMessage)对应的 contentType 是 "jg:callfinishntf";
| 属性名 | 类型 | 说明 | 版本 |
|---|---|---|---|
| finishNotifyType | int | 通话结束类型 | 1.8.2 |
| duration | int | 通话时长,单位(ms) | 1.8.2 |
| mediaType | int | 通话类型 | 1.8.2 |
// 通话结束类型
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;
}