andreaskeller / react-native-audioplayer Goto Github PK
View Code? Open in Web Editor NEWSmall audio player library for react native
License: MIT License
Small audio player library for react native
License: MIT License
When a song is playing on the music player in the background, and this component is activated to play a sound, the music stops. The sounds should mix.
Just wanted to mention @brentvatne was thinking of supporting audio in his react-native-video component. Here's some work I've done on building out an audio native with StreamingKit if it helps any. Check the src/lib
for my audio module.
I am getting the following error when I attempt to build my project. I have followed your instructions to a t.
node_modules/react-native-audioplayer/RNAudioPlayer.h:1:9: 'RCTBridgeModule.h' file not found
How implement method .stop()
?
Running on a physical iOS 9 device this works perfectly, but I have an iOS 10 device and no sound is playing.
I noticed that I've (accidentally) not followed the installation instructions exactly. This bit:
Look for Header Search Paths and make sure it contains both
$(SRCROOT)/../react-native/React and $ (SRCROOT)/../../React - mark both as recursive
I don't think the documented paths exist in my RN0.34 project. Anyway, I unintentionally didn't follow this step. Instead I ran react-native link
and my header search paths contain:
$(SRCROOT)/../node_modules/react-native/React (recursive)
$(SRCROOT)/../node_modules/react-native-audioplayer (non-recursive)
Has anyone else had issues with iOS 10?
EDIT: actually, it seems to work on a simulator, but not a physical device.
Is there a support using an URI? thanks
If the resource is not present it crashes the app
i tried to catch it via javascript but this seems to be managed at android level
there isn't pause api yet.
When I added my sound files to my Xcode project the first time, I simply checked "Create folder references" vs. "Create groups" under the "Added folders" option. AudioPlayer.play
wasn't playing any audio, so the sound files were not making it in the bundle. I tried adding the files again and checked "Create groups" and it worked. If this is not an isolated case, you should add this instruction to the README.
It would be great to play streaming audio!
When building the React Native bundle, I get the following error:
"Unable to resolve module NativeModules from PROJECT_ROOT/node_modules/react-native-audioplayer/AudioPlayer.js"
The bundle builds and sounds still play when running the app from the bundle on disk, so no biggie...
How to make it works on speaker android? It always works on Handset model.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.