我刚刚在谷歌上读到一个帖子,当使用webrtc:https://groups.google.com/forum/#!searchin/discuss-webrtc/huawei$20h264%7Csort:date/discuss-webrtc/EA14U8FMT_k/Jn3CEG7YCQAJ时,荣誉和华为不可能编码成H264:
这是真的吗?这看起来真的很奇怪,我们不能这样做...
此外,我读这个帖子是因为,我来这里是为了用三星手机编码我的数据流,而不是用华为P20手机。(对于华为,流创建了stay PV8,而不是我测试的其他H.264设备)
这是WebRTC中的代码,它向不支持购买华为和荣誉的人证明:
final ArrayList<MediaCodecProperties> supported_codecs = new ArrayList<MediaCodecProperties>();
supported_codecs.add(qcomH264HwProperties);
supported_codecs.add(exynosH264HwProperties);
if (PeerConnectionFactory.fieldTrialsFindFullName("WebRTC-MediaTekH264").equals("Enabled")) {
supported_codecs.add(mediatekH264HwProperties);
}
return supported_codecs.toArray(new MediaCodecProperties[supported_codecs.size()]);
}如果需要,我可以添加我的代码片段。感谢您的阅读。
https://stackoverflow.com/questions/58031556
复制相似问题