public static class Subscriber.Builder extends SubscriberKit.Builder
Subscriber
object. Instantiate a Builder object using the
Subscriber.Builder#Builder(Context context, Stream stream)
constructor. Then call methods of the Builder instance to add settings for the subscriber.
Then call the build()
method, which returns a SubscriberKit
object.
Use the Session.subscribe(SubscriberKit subscriber)
method to start streaming video
for the subscriber.
Constructor and Description |
---|
Builder(android.content.Context context,
Stream stream)
Instantiates a
Subscriber.Builder object. |
Modifier and Type | Method and Description |
---|---|
Subscriber |
build()
Returns a new
Subscriber instance based on the Builder
settings. |
Subscriber.Builder |
renderer(BaseVideoRenderer renderer)
Sets the video renderer to use for the subscriber.
|
public Builder(android.content.Context context, Stream stream)
Subscriber.Builder
object.context
- The
android.content.Context for the SubscriberKit object.stream
- The Stream
object corresponding to the stream you will
subscribe to.public Subscriber.Builder renderer(BaseVideoRenderer renderer)
renderer
in class SubscriberKit.Builder
public Subscriber build()
Subscriber
instance based on the Builder
settings.build
in class SubscriberKit.Builder