OTPublisherDelegate Protocol Reference
| 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
-
– 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.
required method -
– 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.
-
– 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.
-
– publisher:didChangeCameraPosition:Sent when the camera device is changed. @prarm publisher The publisher that signalled this event.
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)positionDeclared In
OTPublisher.hpublisher: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 *)errorParameters
- publisher
The publisher that signalled this event.
- error
The error (an OTError object). The
OTPublisherErrorCodeenum (defined in the OTError class) defines values for thecodeproperty of this object.
Declared In
OTPublisher.hpublisherDidStartStreaming:
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 *)publisherParameters
- publisher
The publisher that signalled this event.
Declared In
OTPublisher.hpublisherDidStopStreaming:
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 *)publisherParameters
- publisher
The publisher that signalled this event.
Declared In
OTPublisher.h