diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita index 01aa1436f2a..6b2fa07d547 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita @@ -32,7 +32,7 @@

You need to register the callback when calling the method. After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. You need to set your preferred video data in the return value of this callback.

The default types of pixel format () for the raw video are as follows:
    -
  • On the Android platform, the default video frame type may be I420Buffer or TextureBuffer. TextureBuffer 类型的纹理格式可能为 OES 格式或者 RGB 格式。 如果 返回的视频帧类型为 ,你需要在处理视频数据时增加对 I420Buffer 或 TextureBuffer 的适配。 The cases where the video frame type is fixed as I420Buffer include but are not limited to:
      +
    • On the Android platform, the default video frame type may be I420Buffer or TextureBuffer. The texture format of TextureBuffer type may be OES or RGB. If the returned video frame type is when you call , you need to adapt to I420Buffer or TextureBuffer when processing video data. The cases where the video frame type is fixed as I420Buffer include but are not limited to:
      • Specific devices, such as: LG G5 SE (H848), Google Pixel 4a, Samsung Galaxy A7, or Xiaomi Mi Max.
      • Image enhancement extension has been integrated and video noise reduction or low-light enhancement function has been enabled.
    • diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita index b51e846f84f..5ff87c12439 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita @@ -36,9 +36,9 @@

      If you need to send the preprocessed data to the SDK, you need to call first to set the video processing mode to read and write mode ().

      You can get raw video data collected by the local device through this callback.

      -

      该回调默认提供的视频数据格式为 I420Buffer 或 TextureBuffer,TextureBuffer 类型的纹理格式可能为 0ES 格式或者 RGB 格式。 如果你需要其他格式的视频数据,可在 回调的返回值中设置预期的数据格式。

      -

      该回调默认提供的视频数据格式为 I420 或 CVPixelBufferRef,如果你需要其他格式的视频数据,可在 回调中返回预期的数据格式。

      -

      该回调默认提供的视频数据格式为 YUV420,如果你需要其他格式的视频数据,可在 getVideoFormatPreference 回调的返回值中设置预期的数据格式。

      +

      The default video format that you get from this callback may be I420Buffer or TextureBuffer. The texture format of TextureBuffer can be either 0ES format or RGB format. If you need video data in other formats, you can set the expected data format in the return value of the callback.

      +

      The default video format that you get from this callback is I420 or CVPixelBufferRef. If you need other formats, you can set the expected data format in the callback.

      +

      The default video format that you get from this callback is YUV420. If you need other formats, you can set the expected data format in the getVideoFormatPreference callback.

Applicable scenarios diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita index 8f9a158b4fb..b3c29ff8032 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita @@ -37,9 +37,9 @@

After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. In this callback, you can get the video data sent from the remote end before rendering, and then process it according to the particular scenarios.

-

该回调默认提供的视频数据格式为 I420Buffer 或 TextureBuffer,TextureBuffer 类型的纹理格式可能为 0ES 格式或者 RGB 格式。 如果你需要其他格式的视频数据,可在 回调的返回值中设置预期的数据格式。

-

该回调默认提供的视频数据格式为 I420 或 CVPixelBufferRef,如果你需要其他格式的视频数据,可在 回调中返回预期的数据格式。

-

该回调默认提供的视频数据格式为 YUV420,如果你需要其他格式的视频数据,可在 getVideoFormatPreference 回调的返回值中设置预期的数据格式。

+

The default video format that you get from this callback may be I420Buffer or TextureBuffer. The texture format of TextureBuffer can be either 0ES format or RGB format. If you need video data in other formats, you can set the expected data format in the return value of the callback.

+

The default video format that you get from this callback is I420 or CVPixelBufferRef. If you need other formats, you can set the expected data format in the callback.

+

The default video format that you get from this callback is YUV420. If you need other formats, you can set the expected data format in the getVideoFormatPreference callback.