继承自 agora_gaming_rtc.IVideoRawDataManager .
◆ OnCaptureVideoFrameHandler()
delegate void agora_gaming_rtc.VideoRawDataManager.OnCaptureVideoFrameHandler |
( |
VideoFrame |
videoFrame | ) |
|
获取本地摄像头采集到的视频数据。
成功注册视频数据观测器后,SDK 会在捕捉到每个视频帧时触发该回调。你可以在回调中获取本地摄像头采集到的视频数据,然后根据场景需要,对视频数据进行前处理。完成前处理后,你可以在该回调中,传入处理后的视频数据将其发送回 SDK。
- 注解
- Agora 不支持将处理后数据通过该回调再发送回 SDK。
- 此处获取的视频数据未经过前处理,如水印、裁剪、旋转和美颜等。
- 参数
-
◆ OnRenderVideoFrameHandler()
delegate void agora_gaming_rtc.VideoRawDataManager.OnRenderVideoFrameHandler |
( |
uint |
uid, |
|
|
VideoFrame |
videoFrame |
|
) |
| |
获取远端发送的视频数据。
成功注册视频数据观测器后,SDK 会在捕捉到每个视频帧时触发该回调。你可以在回调中获取远端发送的视频数据,然后根据场景需求,对视频数据进行后处理。完成后处理后,你可以在该回调中,传入处理后的视频数据将其发送回 SDK。
- 注解
- Agora 不支持将处理后的数据通过该回调再发送回 SDK。
- 参数
-
◆ SetOnCaptureVideoFrameCallback()
◆ SetOnRenderVideoFrameCallback()
◆ RegisterVideoRawDataObserver()
override int agora_gaming_rtc.VideoRawDataManager.RegisterVideoRawDataObserver |
( |
| ) |
|
注册原始视频数据观测器。
- 注解
- 该方法需要在加入频道前调用。
- 返回
-
◆ UnRegisterVideoRawDataObserver()
override int agora_gaming_rtc.VideoRawDataManager.UnRegisterVideoRawDataObserver |
( |
| ) |
|