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

    streamingManager

    The streamingManager that sent the message.

    error

    The error object containing the error information.

    liveId

    A 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

    streamingManager

    The streamingManager that sent the message.

    statsReport

    The updated streaming statistics report.