requestRemoteVideoKeyFrame method
@detail api @brief 在订阅远端视频流之后,向远端请求关键帧 @param streamId 远端流 ID。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 @note - 该方法仅适用于手动订阅模式,并且在成功订阅远端流之后使用。 - 该方法适用于调用 setVideoDecoderConfig{@link #RTCEngine#setVideoDecoderConfig} 开启自定义解码功能后,并且自定义解码失败的情况下使用
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}');
}
}