Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

steam MP3 file

Dear Appery,

I have a select component, on its value change event i have this code:

code
var x = Appery("mobileselectmenu_1").find("option:selected").val();
var url = "http://xxxx.it.s3.amazonaws.com/voice/" + x + ".mp3"
window.open(url);
/code

once i choose an item in the select, the browser open a NEW page and play the file, i'm looking for the correct way on how to play it on the SAME page..

many thanks in advance!
Best,
Ram

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

steam MP3 file

Hi Ram!

You can do it with ChildBrowser plugin https://getsatisfaction.com/apperyio/...

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

steam MP3 file

Thx Alena,

my app is a web app, can i use the plugin in a web app?

Cheers,
R.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

steam MP3 file

Sorry, I did not understand you first, no, it's not possible.
You need to use Audio component.

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

steam MP3 file

okay, how do i set the SRC using JS?

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

steam MP3 file

never mind, i'm using http://buzz.jaysalvat.com/ JS lib, its working perfectly for my needs, thx much!

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

steam MP3 file

Thanks for sharing that.

Return to “Issues”