ZegoPeerToPeerLatencyProbe Class Reference
Inherits from | NSObject |
---|---|
Declared in | zego-api-peertopeer-latency-probe-oc.h |
+ sharedInstance
获取 ZegoPeerToPeerLatencyProbe 的单例对象
+ (instancetype)sharedInstance
Return Value
ZegoPeerToPeerLatencyProbe 的单例对象
Declared In
zego-api-peertopeer-latency-probe-oc.h
– setPeerToPeerLatencyProbeDelegate:
拉流端设置延迟测量的回调
- (void)setPeerToPeerLatencyProbeDelegate:(id<ZegoPeerToPeerLatencyProbeDelegate>)delegate
Parameters
delegate |
回调 |
---|
Declared In
zego-api-peertopeer-latency-probe-oc.h
– enablePeerToPeerLatencyProbe:channelIndex:
推流端激活延迟测量功能,默认时间间隔为3秒
- (void)enablePeerToPeerLatencyProbe:(bool)enable channelIndex:(ZegoAPIPublishChannelIndex)index
Parameters
enable |
true开启 false关闭 |
---|---|
channelIndex |
推流通道 index,详见 enum ZegoAPIPublishChannelIndex。 |
Discussion
- 注意:必须在调用初始化 SDK 接口之后、推流接口之前设置。 *
Declared In
zego-api-peertopeer-latency-probe-oc.h
– setPeerToPeerLatencyProbeInterval:channelIndex:
推流端设置延迟数据发送时间间隔毫秒数,默认为3000
- (void)setPeerToPeerLatencyProbeInterval:(int)interval channelIndex:(ZegoAPIPublishChannelIndex)index
Parameters
interval |
interval 时间间隔,取值范围[1000,300000] |
---|---|
channelIndex |
推流通道 index,详见 enum ZegoAPIPublishChannelIndex。 |
Discussion
- 注意:必须在调用初始化 SDK 接口之后、推流接口之前设置。 *
Declared In
zego-api-peertopeer-latency-probe-oc.h