pushExternalVideoFrame method
@detail api
@hiddensdk(audiosdk)
@author liuyangyang
@brief Pushes external video frames, encapsulated with ByteRTCVideoFrame.
@param frame This video frame contains video data to be encoded by the SDK. Refer to ByteRTCVideoFrame{@link #ByteRTCVideoFrame}.
@return API call result:
- 0: Success.
- <0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for specific reasons.
@note Before pushing an external video frame, you must call setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType} Turn on external video source capture.
Implementation
FutureOr<int> pushExternalVideoFrame(ByteRTCVideoFrameData frame) async {
return await nativeCall('pushExternalVideoFrame:', [frame]);
}