Skip to content

Commit 6ac2a73

Browse files
author
Xia Ning
committed
add comments for getVideoFormatPreference
1 parent 0ff0cf7 commit 6ac2a73

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Android/APIExample/lib-raw-data/src/main/cpp/io_agora_advancedvideo_rawdata_MediaPreProcessing.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ class AgoraVideoFrameObserver : public agora::media::IVideoFrameObserver
179179
return true;
180180
}
181181

182+
virtual VIDEO_FRAME_TYPE getVideoFormatPreference() override {
183+
return FRAME_TYPE_YUV420; // Please don't modify videoFormatPreference in this raw data processing plugin, otherwise it won't work.
184+
}
182185
};
183186

184187
/**Listener to get audio frame*/
@@ -295,6 +298,8 @@ class AgoraAudioFrameObserver : public agora::media::IAudioFrameObserver
295298
writebackAudioFrame(audioFrame, _javaDirectPlayBufferMixAudio);
296299
return true;
297300
}
301+
302+
298303
};
299304

300305

0 commit comments

Comments
 (0)