AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows
https://pub.dev/packages/agora_rtc_engine
MIT License
743 stars 385 forks source link

Is there anyway to record a video call and save it as a file ? #516

Closed developmentkws closed 2 years ago

developmentkws commented 2 years ago

Please help me, I want to record video call and save it as a file.

What I tried yet,

I tried to use Camera plugin to record video, But its not working means , I am not able to record video and do video call at same time.

When I remove code for videocall, Video recording working. But when I try to videocall and Record video together , It throws :

E/flutter ( 6851): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: CameraException(error, Attempt to invoke virtual method 'android.hardware.camera2.CaptureRequest$Builder android.hardware.camera2.CameraDevice.createCaptureRequest(int)' on a null object reference) E/flutter ( 6851): #0 CameraController.startVideoRecording package:camera/src/camera_controller.dart:508 E/flutter ( 6851):

Hwan-seok commented 2 years ago

Try use Agora Cloud Recording Service https://docs.agora.io/en/cloud-recording/cloud_recording_api_rest?platform=RESTful

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.