Inherits agora_gaming_rtc.IVideoRawDataManager.

Public Member Functions

delegate void OnCaptureVideoFrameHandler (VideoFrame videoFrame)
 
delegate void OnRenderVideoFrameHandler (uint uid, VideoFrame videoFrame)
 
override int SetOnCaptureVideoFrameCallback (OnCaptureVideoFrameHandler action)
 
override int SetOnRenderVideoFrameCallback (OnRenderVideoFrameHandler action)
 
override int RegisterVideoRawDataObserver ()
 
override int UnRegisterVideoRawDataObserver ()
 

Detailed Description

The definition of VideoRawDataManager.

Member Function Documentation

◆ OnCaptureVideoFrameHandler()

delegate void agora_gaming_rtc.VideoRawDataManager.OnCaptureVideoFrameHandler ( VideoFrame  videoFrame)

Occurs each time the SDK receives a video frame captured by the local camera.

After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is received. In this callback, you can get the video data captured by the local camera. You can then pre-process the data according to your scenarios.

Note
This callback does not support sending processed RGBA video data back to the SDK.
Parameters
videoFrameSee VideoFrame.

◆ OnRenderVideoFrameHandler()

delegate void agora_gaming_rtc.VideoRawDataManager.OnRenderVideoFrameHandler ( uint  uid,
VideoFrame  videoFrame 
)

Occurs each time the SDK receives a video frame sent by the remote user.

After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is received. In this callback, you can get the video data sent by the remote user. You can then post-process the data according to your scenarios.

Note
This callback does not support sending processed RGBA video data back to the SDK.
Parameters
uidID of the remote user who sends the current video frame.
videoFrameSee VideoFrame.

◆ SetOnCaptureVideoFrameCallback()

override int agora_gaming_rtc.VideoRawDataManager.SetOnCaptureVideoFrameCallback ( OnCaptureVideoFrameHandler  action)

Listens for the OnCaptureVideoFrameHandler delegate.

Parameters
actionThe implementation of the OnCaptureVideoFrameHandler delegate.
Returns
  • 0: Success.
  • < 0: Failure.

◆ SetOnRenderVideoFrameCallback()

override int agora_gaming_rtc.VideoRawDataManager.SetOnRenderVideoFrameCallback ( OnRenderVideoFrameHandler  action)

Listens for the OnRenderVideoFrameHandler delegate.

Parameters
actionThe implementation of the OnRenderVideoFrameHandler delegate.
Returns
  • 0: Success.
  • < 0: Failure.

◆ RegisterVideoRawDataObserver()

override int agora_gaming_rtc.VideoRawDataManager.RegisterVideoRawDataObserver ( )

Registers a video raw data observer.

Returns
  • 0: Success.
  • < 0: Failure.

◆ UnRegisterVideoRawDataObserver()

override int agora_gaming_rtc.VideoRawDataManager.UnRegisterVideoRawDataObserver ( )

UnRegisters the video raw data observer.

Returns
  • 0: Success.
  • < 0: Failure.