From dbbbfabc2f6e11fdfe79c930831f44aad0c49800 Mon Sep 17 00:00:00 2001 From: tomivm Date: Mon, 3 Jul 2023 16:51:16 -0300 Subject: [PATCH] Upload audio in mp3 format --- src/components/Board/Board.container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Board/Board.container.js b/src/components/Board/Board.container.js index 2d05d1ea8..198448b0c 100644 --- a/src/components/Board/Board.container.js +++ b/src/components/Board/Board.container.js @@ -971,9 +971,9 @@ export class BoardContainer extends Component { const { userData } = this.props; try { var blob = new Blob([this.convertDataURIToBinary(tile.sound)], { - type: 'audio/ogg; codecs=opus' + type: 'audio/mp3; codecs=opus' }); - const audioUrl = await API.uploadFile(blob, userData.email + '.ogg'); + const audioUrl = await API.uploadFile(blob, userData.email + '.mp3'); tile.sound = audioUrl; } catch (err) { console.log(err.message);