Test Audio Capabilities

4 posts, 0 answers
  1. Joseph Roberts
    Joseph Roberts avatar
    47 posts
    Member since:
    Jul 2004

    Posted 25 Mar 2013 Link to this post

    I am trying to test the audio abilities of icenium/cordova, but I can't get the simulator to play any sound.  I have read that mp3 is not allowed due to codecs and licensing, but I have read that ogg should be possible as it's bungled with the simulator.  Is it possible to get sound to work?  I am trying to used the example application, but have used an ogg file and still I get no sound.  

    Thanks,
    Joe
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Mar 2013 Link to this post

    Hello Joe,

    The audio sample we ship is using the Cordova API, which is not supported in the simulator out of the box and currently we have not made the required changes for it to work in the simulators.

    As HTML5 defines a new element which specifies a standard way to embed an audio file on a web page, the <audio> element, we suggest giving it a try. Ogg files in this case should work in our simulators.

    Kind regards,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Joseph Roberts
    Joseph Roberts avatar
    47 posts
    Member since:
    Jul 2004

    Posted 25 Mar 2013 Link to this post

    Ok, I put an <audio> tag with on source...

    <audio>
                <source id="audio-success" src="audio/success.ogg" type="audio/ogg;codecs='vorbis'"/>
            </audio>

    When I try to reference the Audio javascript class I get "Audio is not defined" in the console.  I'm not sure how I can play this file if the HTML5 audio components don't seem to be there.  Maybe I just don't know what I'm doing, but it seems simple to me.  

    Thanks,
    Joe
  4. Joseph Roberts
    Joseph Roberts avatar
    47 posts
    Member since:
    Jul 2004

    Posted 25 Mar 2013 Link to this post

    Ok, I just noticed that audio is not supported under Graphite, but it is under Mist.  I will try again there. 

    Thanks,
    Joe
Back to Top