Я использовал createMediaRecorder с типом RecorderStreamType.Preview и startRecording с . strong>streamType — это streamTypeVideo . Я успешно сохранил видео в галерее, но оно не содержит звука.
Код: Выделить всё
_mediaRecorder ??= await _engine.createMediaRecorder(
const RecorderStreamInfo(type: RecorderStreamType.preview));
Код: Выделить всё
await _mediaRecorder
?.startRecording(MediaRecorderConfiguration(storagePath: p,
streamType: MediaRecorderStreamType.streamTypeVideo,
containerFormat: MediaRecorderContainerFormat.formatMp4,
));
Strong> и нулевое сообщение в функции startRecoding в классе MediaRecoderImpl
Код: Выделить всё
await _mediaRecorder
?.startRecording(MediaRecorderConfiguration(storagePath: p,
streamType: MediaRecorderStreamType.streamTypeBoth,
containerFormat: MediaRecorderContainerFormat.formatMp4,
));
Код: Выделить всё
final callApiResult = await irisMethodChannel.invokeMethod(
IrisMethodCall(apiType, jsonEncode(param), buffers: buffers));
if (callApiResult.irisReturnCode < 0) {
throw AgoraRtcException(code: callApiResult.irisReturnCode);
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... error-code
Мобильная версия