Comments (6)
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.
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.
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.
This should have been addressed by #24, if not, feel free to reopen!
from react-sound.
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.
@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)
- onPause does not work on iOS when running in background HOT 1
- Mute feature? HOT 2
- Audio stuck when switching networks
- Please update the yarn and npm packages HOT 1
- No supported file found
- Problem with react-sound with setInterval
- Issue with Status Typing HOT 5
- Issue Sith Dynamic Positioning
- How to handle multiple plays of the same sound
- AbortError: The fetching process for the media resource was aborted by the user agent at the user's request.
- External sounds are prevented in background [Mobile Firefox, Mobile Safari]
- Uncaught Error: The error you provided does not contain a stack trace. HOT 1
- ζδΉε»θ·εε½εζζΎζΆι΄οΌ
- onLoad event is not called after onLoading
- typescript issue with onPlaying callback
- Creating a new v1.2.1 release with recent bugfix in master
- React-sound soundmanager doesnt work with useHistory hook
- Duration in milliseconds
- Could not resolve dependency issue for newer react@ ^17 HOT 1
- Decrease update interval
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-sound.