Conforms to NSObject
Declared in OTPublisher.h

Overview

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

Tasks

Instance Methods

publisher:didChangeCameraPosition:

Sent when the camera device is changed. @prarm publisher The publisher that signalled this event.

- (void)publisher:(OTPublisher *)publisher didChangeCameraPosition:(AVCaptureDevicePosition)position

Declared In

OTPublisher.h

publisher:didFailWithError:

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:(OTPublisher *)publisher didFailWithError:(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

OTPublisher.h

publisherDidStartStreaming:

Sent when the publisher begins streaming device capture data to a session. Note that the session delegate will also receive an [OTSessionDelegate session:didReceiveStream:] message for your publisher’s stream.

- (void)publisherDidStartStreaming:(OTPublisher *)publisher

Parameters

publisher

The publisher that signalled this event.

Declared In

OTPublisher.h

publisherDidStopStreaming:

Sent when the publisher stops streaming device capture data to a session. Note that the session delegate will also receive an [OTSessionDelegate session:didDropStream:] message for your publisher’s stream.

- (void)publisherDidStopStreaming:(OTPublisher *)publisher

Parameters

publisher

The publisher that signalled this event.

Declared In

OTPublisher.h