Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTok.Subscriber.Builder

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). More...
Context Context [get, set]
 The Content object used to manage resources for the Subscriber. More...
Stream Stream [get, set]
 The Stream object corresponding to the stream you will subscribe to. 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()

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

Property Documentation

◆ Context

Context OpenTok.Subscriber.Builder.Context

The Content object used to manage resources for the Subscriber.

◆ Renderer

IVideoRenderer OpenTok.Subscriber.Builder.Renderer

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

◆ Stream

Stream OpenTok.Subscriber.Builder.Stream

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