admin管理员组

文章数量:1642233

SurfaceTextureHelper前台每一帧刷新后,调用tryDeliverTextureFrame尝试获取新的一帧----成功后调用VideoSink#onFrame()通知ScreenCapturerAndroid,由视频流观察者VideoSource#onFrameCapture()---> NativeAndroidVideoTrackSource#onFrameCaptured(VideoFrame frame)调用到native代码android/generated_video_jni/NativeAndroidVideoTrackSource_jni.h#Java_org_webrtc_NativeAndroidVideoTrackSource_nativeOnFrameCaptured() ----> android_video_track_source#OnFrameCaptured --->  video_frame#javaToNativeFrameBuffer()  根据编码类型编码

这里就可以添加自己的编码方式,比如ffmpeg

在本地视频通话使用过程中,oppo,华为,Google,小米,honor等手机能正常编辑码

但是录屏时,现有的几种方式,机型适配出现黑屏,解码失败

本文标签: 流程视频webrtcScreenCapturer