- This topic has 15 replies, 3 voices, and was last updated 12 years, 2 months ago by
FabioChen.
-
AuthorPosts
-
FabioChenMemberHi,
Problem:
Wondering of someone could help me with audio problems. I get audio locally on Chrome and on Safari, but not on the iPhone.Platform:
iPhone 3, iOS 4.1 SafariDescription:
I have created a Select List with items inside.When I click the item, I want it to play an MP3 file.
As you can see, I’m calling playAudio(‘0001’) from “On Click”. I know this can be optimized, but this will suffice for now.
Inside numbers_custom.js I have:
function playAudio(name) { audio.src = 'audio/' + name + '.mp3'; audio.play(); }
I have placed MP3 files inside the “audio” directory.
Would appreciate any help. Thanks.
FC
February 23, 2012 at 5:38 am #323627
support-michaelKeymasterHow are you accessing the webapp from your iPhone, e.g., using Project>Upload Web Application menu action?
If using Upload Web Appliciation, be sure to in the wizard on the Files & Data page to ensure that your audio directory and files are checked. Doing this will include them in the upload process.
February 24, 2012 at 3:45 am #323674
FabioChenMemberHi Wayne,
I have tried both: Upload mobile web Application AND Build iOS Application, and both times included the audio directory.
Neither of them work.
You are welcome to access them to see where I went wrong.
Thanks.
FC
February 24, 2012 at 5:00 am #323679
support-michaelKeymasterCan you post a link to your uploaded webapp? If you wish to keep it confidential please send to
support at genuitec dot com
title: “MobiOne webapp link to audio for wayne”February 24, 2012 at 2:14 pm #323703
FabioChenMemberSent you an email. Thanks, Wayne.
FC
February 25, 2012 at 2:12 pm #323713
support-michaelKeymasterReceived the links and looked at it some. Is not immediately clear what’s up. Will continue investigation.
March 6, 2012 at 7:45 am #324014
FabioChenMemberHi Wayne,
Any progress on this issue?
FC
March 7, 2012 at 12:11 pm #324056
support-michaelKeymasterApologies, no progress yet. I am planning to create my own example so I can isolate the basic functionality and see what might be up.
March 17, 2012 at 3:50 pm #324359
FabioChenMemberHi Wayne,
Any news on the sound issue?
FC
March 19, 2012 at 1:56 pm #324399
FabioChenMemberThanks, Octavio. I’ll check back later this week.
FC
March 28, 2012 at 3:38 am #324718
FabioChenMemberApril 6, 2012 at 9:07 am #325016
FabioChenMemberHi @support-wayne & @support-octavio,
Have not hear from you guys regarding the audio issue. What’s the status?
Thanks.
FC
May 4, 2012 at 7:56 am #325818
johnbailMemberdid you ever hear back I have a probelm with the native app as well I access the file via URL but other then that same workd on all browsers but not native appliction.
May 4, 2012 at 10:09 am #325822
FabioChenMemberMay 4, 2012 at 11:27 am #325826
johnbailMemberthe olny thing I digresed from I create the audio elemnt in the jquery function and pass it the auido stream. here is the code snipet if it helps you at all
this is the code in the function called when play button (image button) is pressed.
$.getJSON(url, function (data) {
var lnk = data.query.results.AskHankRandom.url;
var audioElement = document.createElement(‘audio’);
audioElement.setAttribute(‘src’,lnk);
audioElement.play();});
-
AuthorPosts