Skip to content

SNAudioRetry

Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SNAudioRetry Class Reference

  Inherits from NSObject
  Declared in SNAudioRetry.h

SNAudioRetry.m

Tasks

– checkAndRetryToPullStream:isMixed:

– retryToPublishStream:

Instance Methods

checkAndRetryToPullStream:isMixed:

检查是否可以拉流重试,如果命中重试策略,内部会主动去重试拉流一次

- (BOOL)checkAndRetryToPullStream:(NSString *)*streamId* isMixed:(BOOL)*isMixed*

Parameters

streamId
   流id

isMixed
   是否是混流

Return Value

是否在重试

Discussion

检查是否可以拉流重试,如果命中重试策略,内部会主动去重试拉流一次

Declared In

  • SNAudioRetry.h

retryToPublishStream:

检查是否可以推流重试,如果命中重试策略,内部会主动去重试推流一次

- (BOOL)retryToPublishStream:(NSString *)*streamId*

Parameters

streamId
   流id

Return Value

是否在重试

Discussion

检查是否可以推流重试,如果命中重试策略,内部会主动去重试推流一次

Declared In

  • SNAudioRetry.h
Clone this wiki locally