requestRemoteVideoKeyFrame method

Future<int?> requestRemoteVideoKeyFrame(
  1. string streamId
)

@detail api @brief After subscribing to the remote video stream, request the keyframe @param streamId Remote stream ID. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} 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{@link #RTCEngine#setVideoDecoderConfig} to turn on the custom decoding function, and the custom decoding fails

Implementation

Future<int?> requestRemoteVideoKeyFrame(string streamId) async {
  $a() => ($instance as $p_a.RTCEngine).requestRemoteVideoKeyFrame(streamId);
  $i() =>
      ($instance as $p_i.ByteRTCEngine).requestRemoteVideoKeyFrame(streamId);

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}