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

Access violation when adding an audio track to a peer connection #139

Open
mluketin opened this issue Jul 7, 2021 · 0 comments
Open

Access violation when adding an audio track to a peer connection #139

mluketin opened this issue Jul 7, 2021 · 0 comments

Comments

@mluketin
Copy link

mluketin commented Jul 7, 2021

I am building UWP C++ app (Release x64) and I get access violation issue when I try to add an audio track to peer connection.

This is the code I am using (similar to the official example).

auto audioSrc = g_peer_connection_factory->CreateAudioSource(cricket::AudioOptions());
auto audioTrack = g_peer_connection_factory->CreateAudioTrack(kAudioLabel, audioSrc);
auto ret = peer_connection_->AddTrack(audioTrack, { kStreamId });

I allowed app the to use both microphone and webcam.

Does anyone know why this issue happens?

Sometimes instead of access violation, I get "An invalid parameter was passed to a function that considers invalid parameters fatal"

@mluketin mluketin changed the title Access violation when adding a track to a peer connection Access violation when adding an audio track to a peer connection Jul 13, 2021
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

1 participant