WebRTC series-- iOS video capture (2)


In the previous WebRTC series – iOS video capture (1) VideoStreamEncoder article, the call process from the camera to the medium video stream and the processing of the video stream were introduced ;
this article will introduce the encapsulation of the H264 encoder by WebRTC on the iOS side, And VideoStreamEncoder the process of returning the encoded frame from the video stream to the hardware encoding encoding to the current class;

1. H264 encapsulation of iOS by WebRTC

1.1 Main configuration

The files in sdk/objc/components/video_codec/the directory RTCVideoEncoderH264are the encapsulation of the iOS encoding interface VTCompressionSessionRef;
at the same time, this class implements the protocol RTCVideoEncoder, which defines the main interface:

@protoc

Guess you like

Origin blog.csdn.net/lym594887256/article/details/127304255