requestRemoteVideoKeyFrame method

FutureOr<int> requestRemoteVideoKeyFrame(
  1. NSString streamId
)

@detail api @hiddensdk(audiosdk) @author liuyangyang @brief After subscribing to the remote video stream, request the keyframe @param streamId ID of Remote stream. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - This method is only suitable for manual subscription mode and is used after successful subscription to the remote flow. - This method is suitable for calling setVideoDecoderConfig:withVideoDecoderConfig:{@link #ByteRTCEngine#setVideoDecoderConfig:withVideoDecoderConfig} After the custom decoding function is turned on, and the custom decoding fails

Implementation

FutureOr<int> requestRemoteVideoKeyFrame(NSString streamId) async {
  return await nativeCall('requestRemoteVideoKeyFrame:', [streamId]);
}