AlivcLivePusher_Interactive v6.17.0
Aliyun Live Pusher Interactive SDK API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AlivcLivePusherCustomFilterDelegate> Protocol Reference

Callbacks related to external filters. More...

#include "AlivcLivePusher.h"

Inheritance diagram for <AlivcLivePusherCustomFilterDelegate>:

Instance Methods

(void) - onCreate:context:
 The callback for creation of an external filter.
 
(void) - onDestory:
 The callback for destruction of an external filter.
 
(int) - onProcess:texture:textureWidth:textureHeight:extra:
 The callback for processing of an external filter.
 
(BOOL) - onProcessVideoSampleBuffer:sampleBuffer:
 The callback for processing of an external filter.
 

Detailed Description

Callbacks related to external filters.

Method Documentation

◆ onCreate:context:

- (void) onCreate: (AlivcLivePusher *)  pusher
context: (void *)  context 
required

The callback for creation of an external filter.

Parameters
pusherThe live pusher engine object
contextThe context.

◆ onDestory:

- (void) onDestory: (AlivcLivePusher *)  pusher
required

The callback for destruction of an external filter.

Parameters
pusherThe live pusher engine object

◆ onProcess:texture:textureWidth:textureHeight:extra:

- (int) onProcess: (AlivcLivePusher *)  pusher
texture: (int)  texture
textureWidth: (int)  width
textureHeight: (int)  height
extra: (long)  extra 
required

The callback for processing of an external filter.

The current version of the SDK uses onProcess to process face retouching requests in non-interactive mode.

Parameters
pusherThe live pusher engine object
textureThe ID of the processed texture
widthThe width of the video
heightThe height of the video
extraextra info
Returns
The ID of the processed texture is returned
Note
In the interactive mode, the default is to throw back the CVPixelBuffer for beauty. If you want to call back the texture, you need to set enableLocalVideoTexture. After setting, the interactive mode will throw back the texture ID.

◆ onProcessVideoSampleBuffer:sampleBuffer:

- (BOOL) onProcessVideoSampleBuffer: (AlivcLivePusher *)  pusher
sampleBuffer: (AlivcLiveVideoDataSample *)  sampleBuffer 
required

The callback for processing of an external filter.

The current version of the SDK uses onProcessVideoSampleBuffer to process face retouching requests in interactive mode

Parameters
pusherThe live pusher engine object
sampleBuffervideo sample data AlivcLiveVideoDataSample
Returns
- YES: Written back to the SDK;- NO: Not written back to the SDK
Note
This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.

The documentation for this protocol was generated from the following file: