react-native-webrtc / react-native-webrtc/react-native-incall-manager
Cant make sound through earpiece
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 597
- Forks
- 201
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 1
Description
Hi, i want to play an audio.
I need to play through the speaker unless i put my ear in the earpiece, in this case i need to play it through the earpiece speaker. Turning off the screen when im listening through the earpiece.
I did the following:
import InCallManagerLib from 'react-native-incall-manager';
InCallManagerLib,start();
This its pretty close because its turning off the screen when im near but it always play it through the big speaker. I need to change the audio route to the earpiece when im near.
I tried this function but i dont think it the purpose of it.
Any help. Thanks!!!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported InCallManagerLib.start() usage in react-native-incall-manager and reproduce the proximity-triggered playback behavior. Trace the library's audio-route handling to determine how earpiece playback can be selected while preserving speaker playback otherwise; done means the route changes correctly when the user moves the device near the ear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- audio-video-rtc, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100