WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.
windows vs2017 编译
把depot_tools 加入到环境变量中
clone https://gitee.com/WebrtcUse/webrtc.git 后,切换到my_69 分支上
下载链接:https://pan.baidu.com/s/1IejeUuWA2HCpHmIMFHtJnA 提取码:6wrh ,解压到根目录下,如.\third_party
确认有如下的环境变量 要求vs2017 版本,大于等于15.8.7,可以在vs2017 上直接使用 这个文件夹下 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\ 至少要有比 14.15.26726 大的文件夹
环境变量有如下 DEPOT_TOOLS_UPDATE 0 DEPOT_TOOLS_WIN_TOOLCHAIN 0 GYP_MSVS_OVERRIDE_PATH C:\Program Files (x86)\Microsoft Visual Studio\2017\Community GYP_GENERATORS msvs-ninja,ninja GYP_MSVS_VERSION 2017 Webrtc_Tools E:\2.work\1.webrtc\webrtc-win-20180801\depot_tools
========================= *****编译的时候python 一定要使用depot_tools中的python,在目录depot_tools\win_tools-2_7_6_bin\python\bin
如果这个目录还没有生成,不要慌,先执行下面的 gn gen out/Debug_x64 命令
然后把out/Debug_x64 删除掉
环境变量中再设置下这个python
在执行下面的 gn gen out/Debug_x64 命令
接着编译就好了
搞定 =========================
根目录下,如下命令 gn gen out/Debug_x64 --ide=vs2017 --args="target_winuwp_family="desktop" is_debug=true target_winuwp_version="10.0.17134.0" is_clang=false rtc_include_tests=false rtc_use_h264=true target_cpu="x64"" 这个是debug 模式,release 模式去掉is_debug=true
需要修改一些命令 编译完备的webrtc.lib,在 out\Debug_x64\obj\webrtc.ninja 中 build obj/webrtc.lib: 后增加 obj/api/audio_codecs/builtin_audio_decoder_factory.lib obj/rtc_base/rtc_json/json.obj obj/api/audio_codecs/L16/audio_decoder_L16.lib obj/api/audio_codecs/g711/audio_decoder_g711.lib obj/api/audio_codecs/g722/audio_decoder_g722.lib obj/api/audio_codecs/ilbc/audio_decoder_ilbc.lib obj/api/audio_codecs/opus/audio_decoder_opus.lib obj/api/audio_codecs/isac/audio_decoder_isac_float.lib obj/modules/audio_coding/isac.lib obj/modules/audio_coding/isac_c.lib
这个是增加json + audio decoder 的库
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。