Suggestions

close search

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

Visit the Vonage API Developer Portal
Developer Documentation is moving soon to a new location → https://developer.vonage.com Content will remain unchanged.

OpenTok.IVideoRenderer

Defines a video renderer to be used by a Publisher or Subscriber object. More...

Public Member Functions

void RenderFrame (VideoFrame frame)
 Called when a frame for the video stream is available to be rendered. More...

Detailed Description

Defines a video renderer to be used by a Publisher or Subscriber object.

See also
Publisher.VideoRenderer, Subscriber.VideoRenderer

Member Function Documentation

◆ RenderFrame()

void OpenTok.IVideoRenderer.RenderFrame ( VideoFrame  frame)

Called when a frame for the video stream is available to be rendered.

Do not call any Vonage Video API methods (except those in the VideoFrame class) on the same thread that invokes this callback. If you need to call an Vonage Video API method (for example, Publisher or Subscriber methods), reschedule its execution to a different thread. At the end of the implementation of this method, be sure to call the VideoFrame.Dispose() method of the frame object to prevent memory leaks.

Parameters
frameThe video frame.