Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Participant's audio not coming in the LiveStream #137

Open
ishabodiwala opened this issue Feb 20, 2025 · 3 comments
Open

Remote Participant's audio not coming in the LiveStream #137

ishabodiwala opened this issue Feb 20, 2025 · 3 comments

Comments

@ishabodiwala
Copy link

Hello @crow-misia,

I want to livestream my meeting, but I cannot hear other participants' voices in the live stream. I'm using the Prism Live Studio tool, which captures the screen and broadcasts it to YouTube or other platforms. Notably, YouTube and other media sounds are working fine. How can I achieve the same for the participant's audio? I tried modifying the AudioManager mode and setting AudioAttributes in JavaAudioDeviceModule. I’ve also shared the relevant code snippet. If you have any insights on how this works, please let me know.

JavaAudioDeviceModule.builder(appContext)
                .setAudioAttributes(new AudioAttributes.Builder()
                        .setUsage(AudioAttributes.USAGE_MEDIA) 
                        .setContentType(CONTENT_TYPE_MUSIC)
                        .build())
                .setAudioRecordErrorCallback(audioRecordErrorCallback)
                .setAudioTrackErrorCallback(audioTrackErrorCallback)
                .createAudioDeviceModule();
@crow-misia
Copy link
Owner

AudioDeviceModule always uses the libwebrtc default.
PeerConnectionFactory generation is done on C++ code, so JavaAudioDeviceModule cannot be passed.

Try changing the settings of the application as a whole by controlling AudioManager.

reference:
https://github.com/versatica/libmediasoupclient/blob/v3/src/PeerConnection.cpp#L110

@ishabodiwala
Copy link
Author

Hello @crow-misia, Thank you for the response. I tried with AudioManager, however it is not working. Also what do you mean when you say "changing the settings of the application as a whole", do you mean the Prism application by any chance, as in the Prism Application, I don't see a way of changing the settings.

@crow-misia
Copy link
Owner

@ishabodiwala
I mention that because using AudioManager affects the whole application.

If AudioManager cannot handle the issue, it will be difficult to resolve it.

Please share with others an example of how you have used AudioManager to handle this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants