TWCVideoTrackDelegate Protocol Reference

Conforms to NSObject
Declared in TWCVideoTrack.h

Overview

TWCVideoTrackDelegate allows you to respond to changes in TWCVideoTrack.

This delegate is useful when paired with the attach: APIs.

– videoTrack:dimensionsDidChange:

Fired every time the track’s dimensions change.

- (void)videoTrack:(nonnull TWCVideoTrack *)track dimensionsDidChange:(CMVideoDimensions)dimensions

Parameters

track

The track which was updated.

dimensions

The new dimensions of the video track.

Discussion

Fired every time the track’s dimensions change.

If you have attached views, and wish to resize your containers now would be a good time.

Declared In

TWCVideoTrack.h