|
|
|
@ -136,14 +136,14 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|
|
|
audioPlayer.setFilePath(audioFile.path);
|
|
|
|
audioPlayer.setFilePath(audioFile.path);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// #Pangea
|
|
|
|
// #Pangea
|
|
|
|
final data = matrixFile!.bytes;
|
|
|
|
// final data = matrixFile!.bytes;
|
|
|
|
final mimeType = matrixFile!.mimeType;
|
|
|
|
final mimeType = matrixFile!.mimeType;
|
|
|
|
//shouldn't have to be settting this here
|
|
|
|
//shouldn't have to be settting this here
|
|
|
|
//TODO: figure out why this is necessary
|
|
|
|
//TODO: figure out why this is necessary
|
|
|
|
matrixFile = MatrixAudioFile(
|
|
|
|
matrixFile = MatrixAudioFile(
|
|
|
|
bytes: matrixFile!.bytes,
|
|
|
|
bytes: matrixFile!.bytes,
|
|
|
|
name: matrixFile!.name,
|
|
|
|
name: matrixFile!.name,
|
|
|
|
mimeType: "audio/mp3",
|
|
|
|
mimeType: mimeType,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
debugPrint("audioType is $mimeType");
|
|
|
|
debugPrint("audioType is $mimeType");
|
|
|
|
// TODO - figure out why it's a wav at this point
|
|
|
|
// TODO - figure out why it's a wav at this point
|
|
|
|
|