You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gets the video data captured from the second camera before encoding.
1213
-
*
1214
-
* After you successfully register the video frame observer, the SDK triggers this callback each time
1215
-
* when it receives a video frame. In this callback, you can get the video data before encoding. You can then
1216
-
* process the data according to your particular scenarios.
1217
-
*
1218
-
* After processing, you can send the processed video data back to the SDK by setting the
1219
-
* `videoFrame` parameter in this callback.
1220
-
*
1221
-
* @note
1222
-
* - This callback is for Windows.
1223
-
* - You need to set (1 << 2) as a frame position by `getObservedFramePosition` before you can use this callback to get the video data captured from the second screen and before encoding.
1224
-
* - The video data that this callback gets has been pre-processed, such as watermarking, cropping content, rotating, or image enhancement.
1225
-
* - This callback does not support sending processed RGBA video data back to the SDK.
1226
-
*
1227
-
* @param videoFrame A pointer to the video frame: VideoFrame
1228
-
* @return Determines whether to ignore the current video frame if the pre-processing fails:
1229
-
* - true: Do not ignore.
1230
-
* - false: Ignore, in which case this method does not sent the current video frame to the SDK.
* Occurs each time the SDK receives a video frame captured by the screen.
1236
-
*
1237
-
* After you successfully register the video frame observer, the SDK triggers this callback each time
1238
-
* a video frame is received. In this callback, you can get the video data captured by the screen.
1239
-
* You can then pre-process the data according to your scenarios.
1240
-
*
1241
-
* After pre-processing, you can send the processed video data back to the SDK by setting the
1242
-
* `videoFrame` parameter in this callback.
1243
-
*
1244
-
* @note
1245
-
* - If you get the video data in RGBA color encoding format, Agora does not support using this callback to send the processed data in RGBA color encoding format back to the SDK.
1246
-
* - The video data obtained through this callback has not undergone preprocessing, such as watermarking, cropping content, rotating, or image enhancement.
1247
-
*
1248
-
* @param videoFrame A pointer to the video frame: VideoFrame
1249
-
* @return Determines whether to ignore the current video frame if the pre-processing fails:
1250
-
* - true: Do not ignore.
1251
-
* - false: Ignore, in which case this method does not sent the current video frame to the SDK.
* Gets the video data captured from the second camera before encoding.
1296
-
*
1297
-
* After you successfully register the video frame observer, the SDK triggers this callback each
1298
-
* time it receives a video frame. In this callback, you can get the video data captured from the
1299
-
* second camera before encoding and then process the data according to your particular scenarios.
1300
-
*
1301
-
* After processing, you can send the processed video data back to the SDK in this callback.
1302
1292
*
1303
1293
* @note
1304
-
* - This callback is for Windows.
1305
-
* - You need to set (1 << 2) as a frame position by `getObservedFramePosition` before you can
1306
-
* use this callback to get the video data captured from the second screen and before encoding.
1307
-
* - The video data that this callback gets has been preprocessed, such as watermarking, cropping content, rotating, or image enhancement.
1308
-
* - This callback does not support sending processed RGBA video data back to the SDK.
1294
+
* - This callback will not be affected by the return values of \ref getVideoFrameProcessMode "getVideoFrameProcessMode", \ref getRotationApplied "getRotationApplied", \ref getMirrorApplied "getMirrorApplied", \ref getObservedFramePosition "getObservedFramePosition".
1295
+
* - On Android, this callback is not affected by the return value of \ref getVideoFormatPreference "getVideoFormatPreference"
1309
1296
*
1310
1297
* @param videoFrame A pointer to the video frame: VideoFrame
1298
+
* @param mediaPlayerId ID of the mediaPlayer.
1311
1299
* @return Determines whether to ignore the current video frame if the pre-processing fails:
1312
1300
* - true: Do not ignore.
1313
1301
* - false: Ignore, in which case this method does not sent the current video frame to the SDK.
0 commit comments