Page 1 of 1

steam MP3 file

Posted: Sun Oct 06, 2013 8:46 am
by Ram

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


steam MP3 file

Posted: Sun Oct 06, 2013 8:53 am
by Alena Prykhodko

Hi Ram!

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


steam MP3 file

Posted: Sun Oct 06, 2013 9:13 am
by Ram

Thx Alena,

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

Cheers,
R.


steam MP3 file

Posted: Sun Oct 06, 2013 10:28 am
by Alena Prykhodko

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


steam MP3 file

Posted: Sun Oct 06, 2013 10:56 am
by Ram

okay, how do i set the SRC using JS?


steam MP3 file

Posted: Sun Oct 06, 2013 11:07 am
by Ram

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


steam MP3 file

Posted: Sun Oct 06, 2013 11:08 am
by Alena Prykhodko

Thanks for sharing that.