Skip to content

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

@mluketin

Description

@mluketin

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions