OpenTok.VideoRenderer

public class VideoRenderer : Control, OpenTok.IVideoRenderer

This implementation renders videos to a Windows Presentation Framework control. The VideoRenderer object is a subclass of System.Windows.Controls.Control. You can add this element to your view hierarchy.

Methods

Name Description
VideoRenderer()
RenderFrame(frame) Do not call any OpenTok API methods (except those in the VideoFrame class) on the same thread that invokes this callback.

VideoRenderer()

RenderFrame(frame)

Do not call any OpenTok API methods (except those in the VideoFrame class) on the same thread that invokes this callback. If you need to call an OpenTok 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:
Name Type Description
frame VideoFrame The video frame.