Giter VIP home page Giter VIP logo

Comments (5)

mlop113 avatar mlop113 commented on June 8, 2024 1

just like this:

import SoundPlayer from 'react-native-sound-player'

const SoundPlayer2 = new SoundPlayer
const SoundPlayer3 = new SoundPlayer

SoundPlayer.playSoundFile('All rise', 'wav')
SoundPlayer2.playSoundFile('Bang_bang_bang', 'wav')
SoundPlayer3.playSoundFile('love_story', 'wav')

from react-native-sound-player.

RWOverdijk avatar RWOverdijk commented on June 8, 2024 1

@mlop113 https://github.com/zmxv/react-native-sound can do this. It has been around for a while now but it works well :)

from react-native-sound-player.

johnsonsu avatar johnsonsu commented on June 8, 2024

Hi @mlop113 No, this library cannot play multiple songs at the same time. The current implementation is similar to a singleton, when a new song is played, the previous instance of player will be either reused or destroyed.

To do what you wanted, we will need a completely new architecture for the library with new usage APIs. I will mark this as enhancement for now, but I cannot give you a date on when I'm able to implement it.

from react-native-sound-player.

mlop113 avatar mlop113 commented on June 8, 2024

thank you

from react-native-sound-player.

mlop113 avatar mlop113 commented on June 8, 2024

@RWOverdijk it maybe good with iOS but when I use for android, it load song from url get more time.

from react-native-sound-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.