一、init camera
1)调用栈
wWinMain
->MainWnd::WndProc
->MainWnd::OnMessage
->MainWnd::OnDefaultAction
->Conductor::ConnectToPeer
->Conductor::InitializePeerConnection
->Conductor::AddStreams
->Conductor::OpenVideoCaptureDevice
->WebRtcVideoDeviceCapturerFactory::Create
->WebRtcVideoCapturer::Init
->WebRtcVcmFactory::Create
->VideoCaptureFactory::Create
->videocapturemodule::VideoCaptureImpl::Create
->videocapturemodule::VideoCaptureDS::Init
2)具体实现
Conductor::OpenVideoCaptureDevice()
WebRtcVideoDeviceCapturerFactory::Create
二、start camera
1)调用栈
MainWnd::WndProc()
->MainWnd::OnMessage()
->MainWnd::OnDefaultAction()
->Conductor::ConnectToPeer()
->Conductor::InitializePeerConnection()
->Conductor::AddStreams()
->PeerConnectionFactory::CreateVideoSource
->VideoCapturerTrackSource::Create
->VideoCapturerTrackSource::Initialize
->VideoCapturer::StartCapturing
->WebRtcVideoCapturer::Start
->videocapturemodule::VideoCaptureDS::StartCapture
三、get camera data
1)调用栈
videocapturemodule::CaptureInputPin::Receive()
->videocapturemodule::CaptureSinkFilter::ProcessCapturedFrame()
->videocapturemodule::VideoCaptureImpl::IncomingFrame()
->videocapturemodule::VideoCaptureImpl::DeliverCapturedFrame()
->WebRtcVideoCapturer::OnFrame()