Help | How can I play the audio
See original GitHub issueI am working on an audio call app and was able to integrate the react-native-webrtc
package successfully using this example https://github.com/jdmg94/react-native-webrtc-example/blob/master/App.js
with little changes with the example code as detailed here https://github.com/react-native-webrtc/react-native-webrtc/issues/896
Now, I am able to stream the video between both devices but unable to stream audio. I am also using react-native-incall-manager for playing incoming call/ outgoing call ringtone. But no idea how to play the audio from the remote steam.
Can anyone please help me out?
I have also posted the same on Stackoverflow, URL: https://stackoverflow.com/questions/64939759/how-to-play-audio-in-react-native-webrtc
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Listen to music - Android - Google Assistant Help
You can ask Google Assistant to play music for you. Say "Hey Google" or press the button to talk to Assistant. Say a...
Read more >Fix sound or audio problems in Windows - Microsoft Support
On the Playback tab, select and hold (or right-click) the Default Device, and then select Properties. Select the Advanced tab and uncheck either...
Read more >How to Play a Sound or Music File in Windows - Computer Hope
Once it is running, select Open from the file menu, then browse to the location of the audio file. Alternatively, you can drag-and-drop...
Read more >Play music and podcasts in your car - Apple Support
* After you set up CarPlay, you can play content from the Music app or the Podcasts app while driving. Some third-party audio...
Read more >Audio stops playing on Galaxy mobile devices or accessories
Remove audio apps from your device's sleeping apps list to prevent playback from ... but the app will continue running and playing sound...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s not possible. Audio is played directly in native code by WebRTC itself.
@saghul thanks for your beautiful explanation, that finally solved the puzzle for me. I will use react-native-incall-manager to handle speakerphone control / force-screen-on stuff, react-native-forground service and react-native-background-timer to keep em timers alive on both platoforms and that should do it