Vonage Video API Windows SDK
Public Member Functions | Properties | List of all members
OpenTok.Subscriber.Builder Class Reference

Used to create a Subscriber instance. More...

Public Member Functions

 Builder (Context context, Stream stream)
 Creates a new Builder instance. More...
 
 Builder (Stream stream)
 Creates a new Builder instance. More...
 
Subscriber Build ()
 Use parameters in the builder instance to create a Subscriber object More...
 

Properties

IVideoRenderer Renderer [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 Context [get, set]
 The Content object used to manage resources for the Subscriber.
 
Stream Stream [get, set]
 The Stream object corresponding to the stream you will subscribe to.
 
IDispatcher Dispatcher [get, set]
 The IDispatcher instance used to schedule events. The SDK includes several IDispatcher implementations, which should be enough for most applications. You can also build a custom IDispatcher by overriding the IDispatcher interface. The SDK includes the following IDispatcher implementations, which are available for all presentation frameworks: More...
 

Detailed Description

Used to create a Subscriber instance.

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.

Constructor & Destructor Documentation

◆ Builder() [1/2]

OpenTok.Subscriber.Builder.Builder ( Context  context,
Stream  stream 
)

Creates a new Builder instance.

Parameters
contextThe Context to use for the Subscriber object.
streamThe Stream object corresponding to the stream you will subscribe to.

◆ Builder() [2/2]

OpenTok.Subscriber.Builder.Builder ( Stream  stream)

Creates a new Builder instance.

Parameters
streamThe Stream object corresponding to the stream you will subscribe to.

Member Function Documentation

◆ Build()

Subscriber OpenTok.Subscriber.Builder.Build ( )

Use parameters in the builder instance to create a Subscriber object

Returns

Property Documentation

◆ Dispatcher

IDispatcher OpenTok.Subscriber.Builder.Dispatcher
getset

The IDispatcher instance used to schedule events. The SDK includes several IDispatcher implementations, which should be enough for most applications. You can also build a custom IDispatcher by overriding the IDispatcher interface. The SDK includes the following IDispatcher implementations, which are available for all presentation frameworks: