STSStreamingManagerDelegate
@protocol STSStreamingManagerDelegate <NSObject>
Implements the STSStreamingManagerDelegate protocol to respond to streaming event.
-
Called when an error occurs when the streamingManager connects to a server or streams.
Declaration
Objective-C
- (void)streamingManager:(nonnull STSStreamingManager *)streamingManager onError:(nonnull NSError *)error liveId:(NSString *_Nullable)liveId;Swift
func streamingManager(_ streamingManager: STSStreamingManager, onError error: Error, liveId: String?)Parameters
streamingManagerThe streamingManager that sent the message.
errorThe error object containing the error information.
liveIdA live event id related to this error. e.g. When the error is STSStreamingErrorCodeLiveCountLimit, you will get the not ended live event id, so that you can remove it.
-
Tells the delegate that the streaming statistics report is updated.
Declaration
Objective-C
- (void)streamingManager:(nonnull STSStreamingManager *)streamingManager didUpdateStreamingStatsReport: (nonnull STSStreamingStatsReport *)statsReport;Swift
optional func streamingManager(_ streamingManager: STSStreamingManager, didUpdate statsReport: STSStreamingStatsReport)Parameters
streamingManagerThe streamingManager that sent the message.
statsReportThe updated streaming statistics report.
View on GitHub
Install in Dash
STSStreamingManagerDelegate Protocol Reference