Callbacks related to external filters.
More...
#include "AlivcLivePusher.h"
Callbacks related to external filters.
◆ onCreate:context:
The callback for creation of an external filter.
- Parameters
-
pusher | The live pusher engine object |
context | The context. |
◆ onDestory:
The callback for destruction of an external filter.
- Parameters
-
pusher | The 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
-
pusher | The live pusher engine object |
texture | The ID of the processed texture |
width | The width of the video |
height | The height of the video |
extra | extra 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:
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
-
- 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: