- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML5 audio not playing in PhoneGap App
If you have set all the attributes and audio source correctly, then this can be a security issue.
Add the following in your index.html.
<meta http-equiv="Content-Security-Policy" content="default-src 'self' http://appvipswi.easwi.it; script-src 'self' 'unsafe-inline'; media-src 'self'">
Set the AndroidManifest.xml as
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- Related Articles
- HTML5 check if audio is playing
- HTML5 video not playing in Firefox
- HTML5 tag on Android for PhoneGap application
- HTML5 getCurrentPosition almost always failing in PhoneGap on iOS
- HTML5 Audio to Play Randomly
- HTML5 audio control stop button
- How to keep audio playing while navigating through pages?
- Phonegap + Windows Phone 8 : HTML5 viewport meta & scaling issue
- How to play HTML5 Audio Randomly
- How to detect HTML5 audio MP3 support
- Playing MP4 video in WebView using HTML5 in Android
- Is it possible to style HTML5 audio tag?
- How do we embed audio in web pages in HTML5?
- How to download Audio MP3 from YouTube mobile app?
- How to change the playing speed of videos in HTML5?

Advertisements