Android 在 PJSIP 2.5.1 上启用和配置 OPUS 编解码器
Enable and configure OPUS codec on PJSIP 2.5.1 on Android
我正在使用 PJSIP 库在 Android 上构建一个 VOIP 应用程序。
我试图启用 OPUS 编解码器,因为 PJSIP 从 v2.5 开始支持 OPUS。
我已按照以下内容link 在 PJSIP 上配置 OPUS。
我在 config_site_sample.h 文件中插入 #define PJMEDIA_HAS_OPUS_CODEC 1
以启用 OPUS 编解码器。
但是当我尝试构建 PJSIP 时,出现以下错误
../src/pjmedia-codec/opus.c:31:23: fatal error: opus/opus.h: No such file or directory
#include <opus/opus.h>
^
compilation terminated.
我做错了什么吗?在 PJSIP 中启用 OPUS 编解码器的实际过程是什么?
你必须像这里描述的那样设置编译器标志 --with-opus=[absolute-path-to]/opus-dev-lib
:https://trac.pjsip.org/repos/ticket/1904
不要更改源代码中的静态变量。
我正在使用 PJSIP 库在 Android 上构建一个 VOIP 应用程序。
我试图启用 OPUS 编解码器,因为 PJSIP 从 v2.5 开始支持 OPUS。
我已按照以下内容link 在 PJSIP 上配置 OPUS。
我在 config_site_sample.h 文件中插入 #define PJMEDIA_HAS_OPUS_CODEC 1
以启用 OPUS 编解码器。
但是当我尝试构建 PJSIP 时,出现以下错误
../src/pjmedia-codec/opus.c:31:23: fatal error: opus/opus.h: No such file or directory
#include <opus/opus.h>
^
compilation terminated.
我做错了什么吗?在 PJSIP 中启用 OPUS 编解码器的实际过程是什么?
你必须像这里描述的那样设置编译器标志 --with-opus=[absolute-path-to]/opus-dev-lib
:https://trac.pjsip.org/repos/ticket/1904
不要更改源代码中的静态变量。