[MediaSoup---Source Code] (4) Producer

Producer is the producer of audio and video streams. One channel of audio is considered a separate producer, and one channel of video is also considered a separate producer.

Generally, after creating a Transport, a Producer is created to provide capabilities for the sender. It inherits the following classes. This provides the ability to respond to convection events

	class Producer : public RTC::RtpStreamRecv::Listener,
	                 public RTC::KeyFrameRequestManager::Listener,
	                 public Channel::ChannelSocket::RequestHandler,
	                 public PayloadChannel::PayloadChannelSocket::NotificationHandler
Producer creation process

Logically the Producer is actually created on the Transport

case Channel::ChannelRequest::MethodId::TRANSPORT_PRODUCE:

Guess you like

Origin blog.csdn.net/qq_40179458/article/details/133171932