Enclosing class:
: PublisherKit
public static interface PublisherKit.PublisherListener
Monitors when a publisher starts and stops streaming to the session.
See Also:
: - PublisherKit.setPublisherListener(PublisherListener listener)
Method Summary
All MethodsInstance MethodsAbstract Methods
Modifier and Type
Method
Description
void
onError(PublisherKit publisher, OpentokError error)
Invoked when the publisher fails.
void
onStreamCreated(PublisherKit publisher, Stream stream)
Invoked when the publisher's stream is created.
void
onStreamDestroyed(PublisherKit publisher, Stream stream)
Invoked when the publisher's stream is destroyed.
Method Details
onStreamCreated
void onStreamCreated(PublisherKit publisher, Stream stream)
Invoked when the publisher's stream is created.
Parameters:
: publisher - The publisher.
: stream - The stream that that is created.
onStreamDestroyed
void onStreamDestroyed(PublisherKit publisher, Stream stream)
Invoked when the publisher's stream is destroyed.
Parameters:
: publisher - The publisher.
: stream - The stream that that is destroyed.
onError
void onError(PublisherKit publisher, OpentokError error)
Invoked when the publisher fails.
Parameters:
: publisher - The publisher.
: error - The error that invoked this callback.