OTVideoRender Protocol Reference

Conforms to NSObject
Declared in OTVideoKit.h

Overview

Defines a video renderer to be used by an OTPublisherKit object or an OTSubscriberKit object. See the videoRender properties of OTPublisherKit object and OTSubscriberKit.

– renderVideoFrame: required method

Renders a frame to the video renderer. Do not call any OpenTok API methods (except those in the OTVideoFrame class) on the same thread that invokes this callback. If you need to call an OpenTok API method (for example, OTPublisherKit or OTSubscriberKit methods), reschedule its execution to a different thread.

- (void)renderVideoFrame:(nonnull OTVideoFrame *)frame

Parameters

frame

The frame to render.

Declared In

OTVideoKit.h