跳转到内容

WDGVideoParticipantDelegate

WDGVideoParticipant 的代理方法。

定义

- (void)participant:(nonnull WDGVideoParticipant *)participant didAddStream:(nonnull WDGVideoRemoteStream *)stream;

说明

WDGVideoParticipant 通过该方法通知代理收到参与者发布的媒体流。

参数

参数名 说明
participant WDGVideoParticipant 对象,代表当前参与者。
stream WDGVideoRemoteStream 对象,代表收到的媒体流。


定义

- (void)participant:(nonnull WDGVideoParticipant *)participant didFailedToConnectWithError:(nonnull NSError *)error;

说明

WDGVideoParticipant 通过该方法通知代理未能收到参与者发布的媒体流。

参数

参数名 说明
participant WDGVideoParticipant 对象,代表当前参与者。
error 错误信息,描述连接失败的原因。


定义

- (void)participant:(nonnull WDGVideoParticipant *)participant didDisconnectWithError:(NSError *_Nullable)error;

说明

WDGVideoParticipant 通过该方法通知代理参与者的媒体流中断。

参数

参数名 说明
participant WDGVideoParticipant 对象,代表当前参与者。
error 错误信息,描述媒体流中断的原因。