一、init camera

1)调用栈

MainWnd::WndProc()
->MainWnd::OnMessage()     
->MainWnd::OnDefaultAction()    
->Conductor::ConnectToPeer()     
->Conductor::InitializePeerConnection()
->Conductor::AddStreams()
->Conductor::OpenVideoCaptureDevice()
->WebRtcVideoCapturer::Init

2)具体实现

Conductor::OpenVideoCaptureDevice()

webrtc代码走读一(启动camera)

WebRtcVideoDeviceCapturerFactory::Create

webrtc代码走读一(启动camera)

二、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

三、get camera data

1)调用栈

videocapturemodule::CaptureInputPin::Receive()
->videocapturemodule::CaptureSinkFilter::ProcessCapturedFrame()
->videocapturemodule::VideoCaptureImpl::IncomingFrame()     
->videocapturemodule::VideoCaptureImpl::DeliverCapturedFrame()     
->WebRtcVideoCapturer::OnFrame()     

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2021-12-08
  • 2021-07-21
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2021-07-25
  • 2021-08-17
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案