Recorder recording returns null duration and can’t play

  Kiến thức lập trình

I’m currently working on implementing a audio recording functionality and I’m using the Recorder https://pub.dev/packages/record library and I’m having issues playing the recorded audio using this Audio Players library https://pub.dev/packages/audioplayers

  1. The media file shows up on my device storage and I can play it using my media player but it doesn’t play at all using the library in the app ..

I keep getting state exception (Bad state: no element )

  1. I also noticed one of the log messages was MPEGWriter: media might not be streamable but I ignored it since the media file shows up and plays using local media player

  2. Whenever I play the media file using local media player, it doesn’t show the duration at all

I’ve looked around and I haven’t found any solution or issue that mentions any of this, I followed the implementation form the docs and other relevant materials to the T. But I can’t seem to get what’s causing this

New contributor

LazySadist is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT