OpenTok.IVideoRenderer

public interface IVideoRenderer

Methods

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

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.