facebook

No Audio on iPhone

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #323625 Reply

    FabioChen
    Member

    Hi,

    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 Safari

    Description:
    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

    #323627 Reply

    support-michael
    Keymaster

    @fabiochen

    How 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.

    #323674 Reply

    FabioChen
    Member

    Hi 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

    #323679 Reply

    support-michael
    Keymaster

    @fabiochen

    Can 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”

    #323703 Reply

    FabioChen
    Member

    Sent you an email. Thanks, Wayne.

    FC

    #323713 Reply

    support-michael
    Keymaster

    @fabiochen

    Received the links and looked at it some. Is not immediately clear what’s up. Will continue investigation.

    #324014 Reply

    FabioChen
    Member

    Hi Wayne,

    Any progress on this issue?

    FC

    #324056 Reply

    support-michael
    Keymaster

    @fabiochen

    Apologies, no progress yet. I am planning to create my own example so I can isolate the basic functionality and see what might be up.

    #324359 Reply

    FabioChen
    Member

    Hi Wayne,

    Any news on the sound issue?

    FC

    #324399 Reply

    FabioChen
    Member

    Thanks, Octavio. I’ll check back later this week.

    FC

    #324718 Reply

    FabioChen
    Member

    Hi @support-octavio,

    Wondering if you made any progress on the audio issue. ETA?

    FC

    #325016 Reply

    FabioChen
    Member

    Hi @support-wayne & @support-octavio,

    Have not hear from you guys regarding the audio issue. What’s the status?

    Thanks.

    FC

    #325818 Reply

    johnbail
    Member

    did 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.

    #325822 Reply

    FabioChen
    Member

    Hi @johnbail,


    @octavio
    sent a zip file for me to try it out, but I have not had the time.

    I did look at it briefly… I suspect it does not solve the problem though, as it is not much different from the demo on the site.

    I’ll let you know if I find anything (would appreciate if you did the same).

    FC

    #325826 Reply

    johnbail
    Member

    the 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.

    var url = “http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D%22http%3A%2F%2Fwww.equip.org%2Fask_hanks%2Fdaily_ask_hank.xml%22&format=json&diagnostics=true&callback=?”;

    $.getJSON(url, function (data) {

    var lnk = data.query.results.AskHankRandom.url;

    var audioElement = document.createElement(‘audio’);

    audioElement.setAttribute(‘src’,lnk);
    audioElement.play();

    });

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: No Audio on iPhone

You must be logged in to post in the forum log in