我试图在离子存储上保存媒体对象,但它说:在 storage.set 中保存媒体对象时出错
如何从 storage.set 保存媒体对象并从 storage.get 获取它?this.audioFile = this.media.create(track.src) 这是我写的代码:
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);