Hello,
I am currently working on a project which is trying to build a communication adapter which uses webrtc to transport game data. The project ist Forged Alliance Forever (Supreme Commander) and this is the repositoy:
github.com/FAForever/ice-adapterThe communication adapter ist working now, but we would like to disable encryption, because it wastes traffic which may be limited in large games with many participants.
So here is the question:
Is it possible to disable encryption for a peerconnection using the native webrtc release 68?
If so, how? Do you have a minimal example?
I tried the following things (sorry for code snippets):
_pcfactory = webrtc::CreateModularPeerConnectionFactory(nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr);
webrtc::PeerConnectionFactoryInterface::Options webRtcOptions;
webRtcOptions.disable_encryption = true;
_pcfactory->SetOptions(webRtcOptions);
and later:
webrtc::PeerConnectionInterface::RTCConfiguration configuration;
configuration.servers = _iceServerList;
configuration.enable_rtp_data_channel = true;
_peerConnection = _pcfactory->CreatePeerConnection(configuration,
nullptr,
nullptr,
_peerConnectionObserver.get());
So the problems i am facing now is, that I get aborts from within webrtc and i cannot understand what is happening.
Kind Regards,
Valentin