Skip to content

Disable Media Input Source of Peer. #119

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

Open
Gamer08YT opened this issue Apr 7, 2023 · 2 comments
Open

Disable Media Input Source of Peer. #119

Gamer08YT opened this issue Apr 7, 2023 · 2 comments
Assignees

Comments

@Gamer08YT
Copy link

Gamer08YT commented Apr 7, 2023

Describe the bug
As soon as a peer connection is created via the factory, the Lib uses the default audio inputs.
I write a master->many server, with too many peers Windows terminates the task.

Is there a way to create a peer without input and output sources?

To Reproduce
Steps to reproduce the behavior:

  1. Create some Peer Connections
  2. Sometimes Windows kills the Process with Error (EXCEPTION_ACCESS_VIOLATION (0xc0000005))

Expected behavior
I think Windows is killing the process because too many processes/threads are trying to access the same device.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 22H2 / 22624.1537
@SFX123456
Copy link

Hello
I have the same issue and i dont create a extra audiooutput just an input with AudioOptions audioOptions = new AudioOptions();
AudioTrackSource audioTrackSource = peerConnectionFactory.createAudioSource(audioOptions);
AudioTrack audioTrack = peerConnectionFactory.createAudioTrack("audio",audioTrackSource);
Error occurs after around 1 minute.

@SFX123456
Copy link

Ok so i found a fix thats working at least for me @Gamer08YT . When i compile it to a jar using maven shade plugin and run it via powershell or cmd the error disappears for me. Currently i have 3 peers connected but just one is sending audio.

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

3 participants