Skip to content

Commit

Permalink
Merge pull request #1525 from tomivm/feature/store-remote-audio-on-mp3
Browse files Browse the repository at this point in the history
Upload audio in mp3 format
  • Loading branch information
martinbedouret authored Jul 4, 2023
2 parents a3718d3 + dbbbfab commit 5e33ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e33ca9

Please sign in to comment.