startLocalRecording method

Future<void> startLocalRecording(
  1. TRTCLocalRecordingParams param

Start local media recording with both audio and video data

This API records the audio/video content during live streaming into a local file.


params Recording parameters. For more information, please see TRTCLocalRecordingParams

Platform not supported´╝Ü

  • web


Future<void> startLocalRecording(TRTCLocalRecordingParams param) async {
  return _cloudChannel!.invokeMethod('startLocalRecording', {
    "param": jsonEncode(param),