This is a migrated thread and some comments may be shown as answers.

Test Audio Capabilities

3 Answers 40 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joseph Roberts
Top achievements
Rank 1
Joseph Roberts asked on 25 Mar 2013, 03:46 PM
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

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Mar 2013, 05:14 PM
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.
0
Joseph Roberts
Top achievements
Rank 1
answered on 25 Mar 2013, 05:29 PM
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
0
Joseph Roberts
Top achievements
Rank 1
answered on 25 Mar 2013, 05:34 PM
Ok, I just noticed that audio is not supported under Graphite, but it is under Mist.  I will try again there. 

Thanks,
Joe
Tags
AppBuilder Windows client
Asked by
Joseph Roberts
Top achievements
Rank 1
Answers by
Steve
Telerik team
Joseph Roberts
Top achievements
Rank 1
Share this question
or