which is better to use to play mp3 files in iphone application Phonegap Media API or html5 audio tag ?
The HTML5 tag will work with Phonegap, but your results will vary. Functions such as audio.load () (assuming you use javascript to control your HTML5 audio element) will not work. I would recommend using the Phonegap API.
The regular HTML5 tag will work in the Cordova project, even if you download music from the file system, if and only if you have a content security policy. You can create a content security policy on the Internet using this tool or study this excellent tutorial. Please note that the default project in Cordoba has CSP, but the current Phonegap project does not by default.
Source: https://habr.com/ru/post/1481210/More articles:Does ActionBarSherlock not support easy topic alert dialogs? - androidWhat is the right way to use HoloEverywhere - androidHoloEverywhere: dark panels and dialogs - androidFutures Processing Methods - dartEllipsis broadcasting in numpy.einsum - pythonUNCERTAINT FUEL EXCLUSION: In Android Studio, not in Eclipse - androidjava.lang.ArithmeticException: / zero with Primefaces LazyDataModel - jsfInstall Mercurial Module for Windows without problems - pythonPausing $ watch in AngularJS - angularjsC # Launch default browser with default search query - c #All Articles