OTPublisherKitAudioLevelDelegate Protocol Reference

Conforms to NSObject
Declared in OTPublisherKit.h

Overview

Used for monitoring the audio levels of the publisher.

– publisher:audioLevelUpdated: required method

Sent on a regular interval with the recent representative audio level.

- (void)publisher:(nonnull OTPublisherKit *)publisher audioLevelUpdated:(float)audioLevel

Parameters

publisher

The publisher instance being represented.

audioLevel

A value between 0 and 1, representing the audio level. Adjust this value logarithmically for use in a user interface visualization of the volume (such as a volume meter).

Declared In

OTPublisherKit.h