OpenTok.Subscriber.Builder

public class Builder

Enclosing type: OpenTok.Subscriber

Instantiate a Builder instance by calling the Builder() constructor. Then (optionally), set properties of the Builder object. Then call the Build() method to create a Subscriber object.

Properties

#### Renderer

Type: IVideoRenderer

{ get; set; }

The video renderer for the subscriber. If you do not specify a renderer, the video isn't rendered (and only audio is played back).

#### Context

Type: Context

{ get; set; }

The Content object used to manage resources for the Subscriber.

#### Stream

Type: Stream

{ get; set; }

The Stream object corresponding to the stream you will subscribe to.

#### Dispatcher

Type: IDispatcher

{ get; set; }

Methods

Name Description
Builder(context, stream)
Builder(stream)
Build() → {Subscriber}

Builder(context, stream)

Parameters:
Name Type Description
context Context The Context to use for the Subscriber object.
stream Stream The Stream object corresponding to the stream you will subscribe to.

Builder(stream)

Parameters:
Name Type Description
stream Stream The Stream object corresponding to the stream you will subscribe to.

Build() → {Subscriber}

Returns: