Open imbryan1999 opened 6 months ago
i want to play the local recorded file instead of from url.
Did you find the way?
Hi ! Set the isFile property of the VoiceController to true like bellow:
VoiceMessageView(
backgroundColor: AppColors.greyExtraLight,
controller: VoiceController(
isFile: true,
audioSrc: filePath, // the path to your local recorded file
onComplete: () {},
onPause: () {},
onPlaying: () {},
onError: (err) {},
maxDuration: const Duration(seconds: 25),
),
innerPadding: 8,
cornerRadius: 12,
)
Hope it can help.
i want to play the local recorded file instead of from url.