STSLiveStreamerDelegate

@protocol STSLiveStreamerDelegate <NSObject>

Implements the STSLiveStreamerDelegate protocol to respond to streaming event.

  • Called when an error occurs when the liveStreamer connects to a server or streams.

    Declaration

    Objective-C

    - (void)liveStreamer:(nonnull STSLiveStreamer *)liveStreamer
                 onError:(nonnull NSError *)error
            streamingURL:(nullable NSURL *)streamingURL;

    Swift

    func liveStreamer(_ liveStreamer: STSLiveStreamer, onError error: Error, streamingURL: URL?)

    Parameters

    liveStreamer

    The liveStreamer that sent the message.

    error

    The error object containing the error information.

    streamingURL

    The streaming URL related to this error.