viro
viro copied to clipboard
ViroSpatialSound and ViroSoundField are not working on iOS or Android
Requirements:
Please go through this checklist before opening a new issue
- [x] Review the documentation
- [x] Search for existing issues in: viromedia/viro & ViroCommunity/viro
- [x] Use the latest ViroReact release
Environment iOS
Please provide the following information about your environment:
- Macbook Pro
- Device OS & Version: iPhone11 iOS (15.3)
- ViroReact: 2.22.0
- React Native: 0.65.1
Environment Android
Please provide the following information about your environment:
- Macbook Pro
- Device OS & Version: Google Pixel XL (Android 10)
- ViroReact: 2.22.0
- React Native: 0.65.1
Description
- [ ] ViroSpatialSound crashes with invariant violation: Unrecognized selector sent to instance
- [ ] ViroSoundField crashes with invariant violation: Unrecognized selector sent to instance
Reproducible Demo
⚠️ NOTE: I've installed viro react from a local download of the viro react to make changes to the viro react source code. All of these issues have been replicated with [email protected].
ViroSpatialSound
https://github.com/NS-BOBBY-C/starter-kit/blob/4d93e7dd3ae05d089573f07f20964e2258a1933d/screens/viro_tests/ViroSpatialSound.tsx#L1-L48
ViroSoundField
https://github.com/NS-BOBBY-C/starter-kit/blob/4d93e7dd3ae05d089573f07f20964e2258a1933d/screens/viro_tests/ViroSoundField.tsx#L1-L48
Are you doing your tests with the latest version from NPM or GitHub?
Both. I was originally using the master branch from GitHub, but then switched back to NPM to confirm it wasn't an issue with my local viroreact repo
Just confirmed @doranteseduardo that this was still an issue. My process:
- Remove node_modules from my fork of starter-kit
- Remove ios/podfile.lock, yarn.lock, package-lock.json
- Update package.json to use "^2.22.0" instead of "../viro"
-
yarn install
- Create demo for starter-kit https://github.com/NS-BOBBY-C/starter-kit/blob/101d6bf7c9995c16fb3c6ba7bc1b3c9d5f05d447/screens/github_issues/Issue74.tsx
- See that it isn't working (screen recording)
https://user-images.githubusercontent.com/29097404/150527588-c81a6f70-18dd-489b-969e-28fed2f2c07e.MP4
Just confirmed this as an issue on an android phone as well. Google Pixel XL, android 10. Android doesn't crash or have a red error LogBox, but the sound does not play.
The same problem.. Android 11. Are there any solutions?
@mondriy you can use ViroSound, which works as expected.
I tried ViroSound, but in my project I need in this feature because volume of sound depends of space. Do you know how to solve this problem? May be you planed to fix this in future upd? Thanks.