WOWZVideoEncoderSink

Extends Protocol:
Declared In:

Introduction

WOWZVideoEncoderSink defines a protocol for callbacks that occur when video frames are encoded.



Methods

-videoBitrateDidChange:previousBitrate:
-videoFrameWasEncoded:

videoBitrateDidChange:previousBitrate:


@optional

- (void) videoBitrateDidChange:(NSUInteger)newBitrate previousBitrate:(NSUInteger)previousBitrate __attribute__((deprecated));
Parameters
newBitrate

The new (updated) bitrate.

previousBitrate

The previous bitrate.

Discussion

DEPRECATED Use the WOWZBroadcastEventBitrateReduced and WOWZBroadcastEventBitrateIncreased constants in the WOWZBroadcastStatus class's WOWZBroadcastEvent typedef instead. Called when the sink bitrate is reduced due to inability to keep up with encoded frames.


videoFrameWasEncoded:


@required

- (void) videoFrameWasEncoded:(nonnull CMSampleBufferRef)data;
Parameters
data

The frame's encoded video data.

Discussion

Called for each frame of encoded video.