Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Help playing voice recording
Post Body

Hi, I am using the native media plugin to record audio and then saving it in Firebase storage but am unable to play the file that is saved.

I am having to Blob() the file that is saved which I suspect is causing the issue as I can play it back when I save it locally and don't upload to Firebase.

I am trying to upload the file so that it can be played on other devices using the streaming media plugin.

Here is my code that uploads the file, any help would be really appreciated as I am going round in circles on this.

upload(fileName) {
if (this.platform.is('ios')) {
this.filePath = this.file.tempDirectory.replace(/^file:\/\//, '') fileName;
} else if (this.platform.is('android')) {
this.filePath = this.file.externalDataDirectory.replace(/file:\/\//g, '') fileName;
}
const ref = storage().ref('voiceRecordings/' fileName);
this.file.readAsDataURL(this.file.tempDirectory, fileName)
.then((file) => {
const blobFile = new Blob([file], {type: 'audio/mpeg-4'});
ref.put(blobFile).then((snapshot) => {
snapshot.ref.getDownloadURL().then((url) => {
this.sendVoice(url);
})
})
.catch(err => {
console.log('UPLOAD ERROR ', err)
});
})
.catch(err => {
})

}

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
691
Link Karma
293
Comment Karma
398
Profile updated: 2 days ago
Posts updated: 3 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago