Audio files are not loading by url.
Audio files are not accessible by url.
const { Asset } = this.$FeathersVuex.api
const blob = await Asset.get(this.asset.id || this.asset._id, { query: { $blob: true } })
// A blob-uri works for Audio Notes by the Annotate input.
if (blob.uri) {
this.fileUrl = blob.uri
}
// To get the file as an URL is not working with my uploaded .mp3 file and also not with the audio notes.
else {
this.fileUrl = this.$helpers.getFileURLFromBlobID(this.asset.blobId)
}
Example URL:
mp3
https://api.vortanz.ai/beta/files/b6a52f48-1287-4d02-a67c-8b352f2692b1%2F081bc2bd2334a7cb84aa92a34bdf5dc3c0f598b6bd2c6c7797381e0efc5a4ff8.mp3
audio note (m4a)
http://api.vortanz.ai/beta/files/b6a52f48-1287-4d02-a67c-8b352f2692b1%2F80486dd515f1e08710d778e872ff48370770f672b0b2444e906e744bf5c0b2d8.m4a
The problem now is that the mp3 files does not deliver a blob-uri so it cant be displayed in the front-end.