The public API of the WebRTC library consists of the api/ directory and its subdirectories. No other files should be depended on by webrtc users.
Before starting to code against the API, it is important to understand some basic concepts, such as:
The PeerConnectionInterface class is the recommended way to use the WebRTC library.
PeerConnections are created using the PeerConnectionFactoryInterface.
There are two levels of customization available:
Most functions on the PeerConnection interface are asynchronous, and take a callback that is executed when the function is finished. The callbacks are mostly called on the thread that is passed as the “signaling thread” field of the PeerConnectionFactoryDependencies, or the thread that called PeerConnectionFactory::CreatePeerConnectionOrError() if no thread is given.
See each class' module documentation for details.
This needs to be done carefully, and in consultation with the WebRTC team. There are non-obvious dependencies between many of the components.