Does media.playSound allow playing from remote (online) sources?

Hey all,

I noticed in the StreamingVideo tutorial here, the code uses media.PlayVideo and fetches a video file on the web. I tried to do the same using media.loadStream(), but all I get is an error saying that the file cannot be found.

So is there any way to play a sound file from a website in Corona?

Thanks! [import]uid: 22447 topic_id: 7161 reply_id: 307161[/import]

EDIT: I looked into it more, and used the http.request method to download the mp3, save it, and then play it back locally and it works great. So my new question is, can I play the mp3 as it loads? I ask this because I’d like to play a streaming mp3. [import]uid: 22447 topic_id: 7161 reply_id: 25188[/import]

@ParkerK

Care to share any code on how you saved the file to play back locally. [import]uid: 7845 topic_id: 7161 reply_id: 36125[/import]

there is no streaming support.

But PlayVideo may work on some sound files and will do streaming. You will have to check if it works with your format … I can’t guarantee it will work right away or properly.

@ a3mg :: sample code folder has network sample to download an image. just replace the image with an mp3 of file of your choice
c. [import]uid: 24 topic_id: 7161 reply_id: 36148[/import]

Thanks Carlos, I will check it out. Want to use it to allow users to download a video if they want, instead of streaming it.

We have an app in the works that allows users to stream 30 or so video clips from a server. If we gave them the option to download so they can have it locally instead, what happens if we update the app? Will the downloaded videos remain and still be accessible to the updated app? [import]uid: 7845 topic_id: 7161 reply_id: 36152[/import]

the videos will remain if you just update the app. just like scores and levels in a game

c [import]uid: 24 topic_id: 7161 reply_id: 36153[/import]

Put the videos in an html file on the remote server and load it via the webshowPopup function.

That might do the trick for you? [import]uid: 18783 topic_id: 7161 reply_id: 39419[/import]