It appears WebRTC crashes during initialization of the AudioDeviceModule when a PS5 Controller is hooked up through USB on Windows 10.
My question is:
-
If someone has a PS5 controller and a project w/ WebRTC, can they confirm this is also happening? Then crash happens if you call this function.
auto factory = webrtc::CreatePeerConnectionFactory(
_networkThread.get(),
_workerThread.get(),
_signalThread.get(),
nullptr, // create system ADM
webrtc::CreateBuiltinAudioEncoderFactory(),
webrtc::CreateBuiltinAudioDecoderFactory(),
webrtc::CreateBuiltinVideoEncoderFactory(),
webrtc::CreateBuiltinVideoDecoderFactory(),
nullptr,
nullptr);The crash is because internally, creating a AudioDeviceModule will return a NULL for some reason. You can test it out w/ this. Internally, CreatePeerConnectionFactory() will call this to create the default ADM.
auto adm = webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer::kPlatformDefaultAudio); -
How do I go about building my own WebRTC library compatible w/ UE4? I couldn’t find a script to build the files under Engine\Source\ThirdParty\WebRTC.