OTPublisherKitDelegate Protocol Reference
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:name:] message, you specify an
OTSessionDelegate 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:(OTPublisherKit *)publisher didFailWithError:(OTError *)error
Parameters
publisher |
The publisher that signalled this event. |
---|---|
error |
The error (an OTError object). The |
Declared In
OTPublisherKit.h
– publisher:streamCreated:
Sent when the publisher starts streaming.
- (void)publisher:(OTPublisherKit *)publisher streamCreated:(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:(OTPublisherKit *)publisher streamDestroyed:(OTStream *)stream
Parameters
publisher |
The publisher that stopped sending this stream. |
---|---|
stream |
The stream that ended. |
Declared In
OTPublisherKit.h