Conforms to NSObject
Declared in OTPublisherKit.h

Overview

Used for sending messages for an OTPublisher instance. The OTPublisher class includes a delegate property. When you send the [OTPublisherKit initWithDelegate:] message or the [OTPublisherKit initWithDelegate:settings:] message, you specify an OTPublisherKitDelegate object.

– publisher:didFailWithError: required method

Sent if the publisher encounters an error. After this message is sent, the publisher can be considered fully detached from a session and may be released.

- (void)publisher:(nonnull OTPublisherKit *)publisher didFailWithError:(nonnull OTError *)error

Parameters

publisher

The publisher that signalled this event.

error

The error (an OTError object). The OTPublisherErrorCode enum (defined in the OTError class) defines values for the code property of this object.

Declared In

OTPublisherKit.h

– publisher:streamCreated:

Sent when the publisher starts streaming.

- (void)publisher:(nonnull OTPublisherKit *)publisher streamCreated:(nonnull OTStream *)stream

Parameters

publisher

The publisher of the stream.

stream

The stream that was created.

Declared In

OTPublisherKit.h

– publisher:streamDestroyed:

Sent when the publisher stops streaming.

- (void)publisher:(nonnull OTPublisherKit *)publisher streamDestroyed:(nonnull OTStream *)stream

Parameters

publisher

The publisher that stopped sending this stream.

stream

The stream that ended.

Declared In

OTPublisherKit.h