@nutnonsee wrote:
Hi, Everyone
We’re try to play an audio with Media plugin from local path, but we struck on an error in iOS (as this feature only needed in iOS).
Here’s the error message
'file:///var/mobile/Containers/Data/Application/39169475-98FC-442D-A793-A871D328227E/Documents/storm.mp3' 2019-10-31 14:56:22.748613+0700 App[996:337265] Unknown resource
We also use File plugin to get app directory.
Here’s the code
const player = Media.create(File.applicationStorageDirectory + 'Documents/music.mp3') player.play()
Using said plugin to play audio from URL is working just fine.
Any help or guidance would be very much appreciated, thanks.
Posts: 1
Participants: 1