Skip to main content Link Menu Expand (external link) Document Search Copy Copied
getRecordURL method - FlutterSoundRecorder class - recorder library - Dart API
menu
getRecordURL

getRecordURL method

Future<String?> getRecordURL({
  1. required String path,
})

Get the URI of a recorded file.


This is same as the result of stopRecorder(). Be careful : on Flutter Web, this verb cannot be used before stopping the recorder. This verb is seldom used. Most of the time, the App will use the result of stopRecorder().


Implementation

Future<String?> getRecordURL({required String path}) async {
  await _waitOpen();
  if (_isInited != Initialized.fullyInitialized) {
    throw Exception('Recorder is not open');
  }
  var url = await FlutterSoundRecorderPlatform.instance.getRecordURL(
    this,
    path,
  );
  return url;
}
flutter_sound 9.25.3