- This topic has 15 replies, 3 voices, and was last updated 11 years, 6 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
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.
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
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”
FabioChenMemberSent you an email. Thanks, Wayne.
FC
support-michaelKeymasterReceived the links and looked at it some. Is not immediately clear what’s up. Will continue investigation.
FabioChenMemberHi Wayne,
Any progress on this issue?
FC
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.
FabioChenMemberHi Wayne,
Any news on the sound issue?
FC
FabioChenMemberThanks, Octavio. I’ll check back later this week.
FC
FabioChenMember
FabioChenMemberHi @support-wayne & @support-octavio,
Have not hear from you guys regarding the audio issue. What’s the status?
Thanks.
FC
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.
FabioChenMember
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