Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I need a proper installation and the source code for adding an audio in react native for a mobile application

What I have tried:

I’ve installed the npm install --save react-audio-player but it doesn’t work.
Posted
Updated 13-Dec-19 22:52pm

Sorry, but this site does not provide code to order. And the expression "but it doesn’t work" tells us nothing that would lead us to suggested solutions.
 
Share this answer
 
Quote:
I’ve installed the npm install --save react-audio-player but it doesn’t work.
It would not work on its own. You have to configure the project to run properly, and also make sure that you are using the valid file types. This package react-audio-player uses the native <audio /> tag to provide the service, and this HTML5 element is known to have some limitations for the file types that it can run (read the Usage notes in the MDN link I provided below).

Check more on the package here at NPM: https://www.npmjs.com/package/react-audio-player[^]
<audio>: The Embed Audio element - HTML: Hypertext Markup Language | MDN[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900