Can not Play audio by url .

Hello guys ,

                   I am developing a game and i need to play some audio files directly by url. So anyone knows how could i play an audio using the url and without using network.download. i just want to play the audio online.If there is any way please reply me as soon as possible. 

Thank you

Hi @divakarjoshi257,

I seem to recall this may be possible by actually using media.playVideo() with a remote source, but you supply an audio file URL instead of a video… however, I can’t make any promise on this. I searched around for the thread I once saw on this, but I can’t find it. Also, I don’t know if it would work on both iOS and Android, or just one of them. I think you’ll just need to experiment a bit. :slight_smile:

Brent

Hello Brent,

                    Thank you :)  it is working now in android but as usual not in iOS. so i have used native.newVedio and it is working in ios but unfortunately i do not get the media options (play,pause,next,previous) in it like media.playVedio.  

Thank you

Hi @divakarjoshi257,

I seem to recall this may be possible by actually using media.playVideo() with a remote source, but you supply an audio file URL instead of a video… however, I can’t make any promise on this. I searched around for the thread I once saw on this, but I can’t find it. Also, I don’t know if it would work on both iOS and Android, or just one of them. I think you’ll just need to experiment a bit. :slight_smile:

Brent

Hello Brent,

                    Thank you :)  it is working now in android but as usual not in iOS. so i have used native.newVedio and it is working in ios but unfortunately i do not get the media options (play,pause,next,previous) in it like media.playVedio.  

Thank you