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...
 
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.
 

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()

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.

Member Function Documentation

◆ Build()

Subscriber OpenTok.Subscriber.Builder.Build ( )

Use parameters in the builder instance to create a Subscriber object

Returns