目前webrtc在移动端,的编码器实现,会检测硬件编码器部分,如果支持,可以通过硬件编码器进行H264编码,当然包括VP8和VP9的硬件编码检测;
如果不支持,则默认通过VP8软件视频编码器;
1:Android
在Android端,默认编译不包括OPENH264和FFmpeg,需要通过参数设置将这两个库可以编译到Android端;
1:
peerconnectionfactory_jni.cc
JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnectionFactory)(
JNIEnv* jni, jclass, jobject joptions) {
// talk/ assumes pretty widely that the current Thread is ThreadManager'd, but
// ThreadManager only WrapCurrentThread()s the thread where it is first
// created. Since the semantics around when auto-wrapping happens in
// webrtc/base/ are convoluted, we simply wrap here to avoid having to think
// about ramifications of auto-wrapping there.
rtc::ThreadManager::Instance()->WrapCurrentThread();
最后
以上就是优美蜡烛最近收集整理的关于webrtc在移动端:Android, IOS上的视频编码器创建过程1:Android的全部内容,更多相关webrtc在移动端:Android,内容请搜索靠谱客的其他文章。
发表评论 取消回复