Giter VIP home page Giter VIP logo

Comments (6)

DvirSh avatar DvirSh commented on June 29, 2024

Probably too late, but there is an issue with soundmanager2
It is currently in PR there, so we need to keep our hopes high 🀞

from react-sound.

leoasis avatar leoasis commented on June 29, 2024

Hi! Awesome, I'm down for making it work on mobile. I currently don't have that use case, but if you are willing to test it and send a PR, I'll definitely merge it!

from react-sound.

DvirSh avatar DvirSh commented on June 29, 2024

The problem is that soundmanager2 won't accept the pull request to allow that, and if we want it fixed we need to pull from the PR branch... :(

from react-sound.

leoasis avatar leoasis commented on June 29, 2024

This should have been addressed by #24, if not, feel free to reopen!

from react-sound.

sanraw54321 avatar sanraw54321 commented on June 29, 2024

Hi I am using this package , and seeing the same issue , where my app runs in desktop but its not working in my tab or mobile.
As mentioned by you , I am setting up as below:
componentDidMount() {
console.log(soundManager);
soundManager.setup({ ignoreMobileRestrictions : true
});
}

but its still not working.

Basic sample code base below , the way I am using. This works in my laptop , but not in my tab.

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Sound from 'react-sound';

class MyComponentWithSound extends React.Component {

componentDidMount() {
console.log(soundManager);
soundManager.setup({
ignoreMobileRestrictions: true
});
}
render() {
return
}
}

class App extends Component {
constructor(props) {
super(props);
}

// Normally you would want to split things out into separate components.
// But in this example everything is just done in one place for simplicity
render() {
return (

);
}
}

// Put the thing into the DOM!
ReactDOM.render(, document.getElementById('app'));

from react-sound.

nazarposhta avatar nazarposhta commented on June 29, 2024

@sanraw54321 As remember I just left that and implemented my app based on HTML 5 AUDIO API by myself.

from react-sound.

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.