Inherits from UIView
Declared in OTVideoView.h

Overview

A generic view hierarchy for viewable objects with video in the OpenTok iOS SDK.

Tasks

  •   toolbarView

    This view holds the bottom bar of video panels. Included is a nameplate showing the stream’s name, and buttons for muting tracks and (for a publisher) switching the camera.

    property
  •   videoView

    This view contains the video track for a stream, when available. For subscribers, this view renders frames of the stream. For publishers, this view renders frames as they are encoded to a stream.

    property
  • – getImageWithBlock:

    Take a snapshot of the current video frame displayed

Properties

toolbarView

This view holds the bottom bar of video panels. Included is a nameplate showing the stream’s name, and buttons for muting tracks and (for a publisher) switching the camera.

@property (readonly, strong) UIView *toolbarView

Declared In

OTVideoView.h

videoView

This view contains the video track for a stream, when available. For subscribers, this view renders frames of the stream. For publishers, this view renders frames as they are encoded to a stream.

@property (readonly) UIView *videoView

Declared In

OTVideoView.h

Instance Methods

getImageWithBlock:

Take a snapshot of the current video frame displayed

- (void)getImageWithBlock:(void ( ^ ) ( UIImage *snapshot ))block

Parameters

block
  • a block that will be invoked upon a successful image capture with a resulting UIImage

Declared In

OTVideoView.h