JDLinkPKDelegate Protocol Reference

Conforms to NSObject
Declared in JDLinkPK.h

Overview

@protocol JDLinkPKDelegate

本类包含了所有连麦相关的代理回调接口方法

– onJDLinkPK:withEventId:withParam: required method

连麦PK回调代理

- (void)onJDLinkPK:(JDLinkPK *)livePK withEventId:(int)eventId withParam:(NSDictionary *)param

Parameters

livePK

连麦对象

eventId

事件ID

param

事件参数字典

Discussion

see JDLinkPK eventId = 2000 连麦PK成功

Declared In

JDLinkPK.h

– onJDLinkPK:withErrorCode:withMessage: required method

连麦回调代理

- (void)onJDLinkPK:(JDLinkPK *)livePK withErrorCode:(int)errorCode withMessage:(NSString *)message

Parameters

livePK

连麦对象

errorCode

错误码

message

错误描述

Discussion

see JDLinkPK errorCode = -1000 本地推流失败 errorCode = -1001 对端拉流失败 errorCode = -1002 对端拉流中断 errorCode = -1100 连麦PK超时 60秒超时

Declared In

JDLinkPK.h