0

I'm building a multi-device hybrid app with this Visual Studio plugin. In my html file i use the html5 audio tag. This does only work with online mp3 files, not with offline mp3 files. Is it possible that audio isn't supported in the multi-device hybrid apps plugin? Or is it just me doing something wrong? I'm testing it on a Nexus 5.

Here is the HTML that I'm using.

<audio controls>
    <source src="https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3" type="audio/mpeg">
</audio>
<audio controls>
    <source src="sound.mp3" type="audio/mpeg">
</audio>

Thanks

Priyank
  • 1,568
  • 10
  • 15
DLP
  • 3
  • 3
  • The audio specification is part of HTML5 and is not related to the plugin or Visual Studio. That being said, there have been issues and multiple threads on playing audio files on Android devices. These can be found [here](http://stackoverflow.com/questions/12142084/html5-audio-tag-is-not-working-in-android) and [here](http://stackoverflow.com/questions/22515699/play-sound-on-phonegap-app-for-android). – Avani Aug 20 '14 at 22:23
  • I was able to get it working using the Media plugin for cordova. – DLP Aug 21 '14 at 10:00

1 Answers1

0

This has been solved. The solution is to use the Cordova media plugin to play audio files on the Android device.

Avani
  • 566
  • 2
  • 8