question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help | How can I play the audio

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Jan 15, 2021

That’s not possible. Audio is played directly in native code by WebRTC itself.

0reactions
ilya-lopukhincommented, Jan 18, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found