Closed jibon57 closed 7 years ago
Did you ever figure it out @jibon57
I'm currently also having this issue with a fresh project. It doesn't happen when running the demo project from this repo, though, so I'm assuming its a dependency issue.
Dependency or the file isn't compatible to be played from the native os media players. Got a link to the file you can share?
The problem seems to be that initWithDataError
does not actually return the player (for whatever reason) on iOS. FWIW this is a NativeScript Angular project. I'll setup an example repo for you in a minute.
the file isn't compatible to be played from the native os media players.
I've used the same file as the demo project in my demo repo to rule that out.
@zbarbuto - have you tried waiting for the promise to resolve before calling play
in this project? https://github.com/zbarbuto/nativescript-audio-62/blob/master/app/item/item-detail.component.ts#L23 that method returns a promise, I haven't ran the demo so if you can rule that out for me first I'll try to look at this later on and see if something is wrong with the audio plugin logic.
The error is thrown on that line so it doesn't even get as far as play
. You can comment out the play line and it will still throw the same rror.
Hi,
Thanks for the plugin. I am trying to play remote file like this:
But I am getting following error in IOS:
Any idea, in where I am doing wrong?
Thanks