I attempted to save a Media Object on ionic storage, but encountered an error message stating: "error while saving media object in storage.set"
https://i.sstatic.net/5jEaQ.jpg
How can I successfully save a media object using storage.set and retrieve it with storage.get? Here is the code snippet I wrote:
this.audioFile = this.media.create(track.src)
this.trackstoreddata = {
dataPlaying:this.playing,
tracks: this.musicApiService.bmusic,
selectedtrack:this.selectedTrack,
trackselected: this.trackSelected,
audiofile: this.audioFile
}
this.storage.set("trackStoredData",this.trackstoreddata);