OpenTok.Subscriber.Builder
Copy
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
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).
Type: Context
{ get; set; }
The Content object used to manage resources for the Subscriber.
Type: Stream
{ get; set; }
The Stream object corresponding to the stream you will subscribe to.
Type: IDispatcher
{ get; set; }
- DirectDispatcher
- DedicatedWorkerDispatcher
- ThreadPoolDispatcher There is also an IDispatcher implementation provided for each supported presentation framework:
- WPFDispatcher (both for .NetFramework and .NetCore)
- WinFormsDispatcher (both for .NetFramework and .NetCore)
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. |