requestRemoteVideoKeyFrame method

FutureOr<int> requestRemoteVideoKeyFrame(
  1. NSString streamId
)

@detail api @hiddensdk(audiosdk) @author liuyangyang @brief 在订阅远端视频流之后,向远端请求关键帧 @param streamId 远端流 ID。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 - 该方法适用于调用 setVideoDecoderConfig:withVideoDecoderConfig:{@link #ByteRTCEngine#setVideoDecoderConfig:withVideoDecoderConfig} 开启自定义解码功能后,并且自定义解码失败的情况下使用

Implementation

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