c api和测试范例新增webrtc功能 (#1574)

* Update Rtsp.cpp

* c sdk识别到enable_webrtc

* mk_api增加json库

* 对rtc http请求的处理

* c sdk 增加rtc服务器
This commit is contained in:
Dw9
2022-04-16 15:57:02 +08:00
committed by GitHub
parent e712639e33
commit ebe4141026
8 changed files with 361 additions and 24 deletions

View File

@@ -336,10 +336,6 @@ endif ()
execute_process(COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/www ${EXECUTABLE_OUTPUT_PATH}/)
execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/conf/config.ini ${EXECUTABLE_OUTPUT_PATH}/)
#添加c库
if (ENABLE_API)
add_subdirectory(api)
endif ()
if (ENABLE_WEBRTC)
#查找srtp是否安装
@@ -361,6 +357,11 @@ if (ENABLE_WEBRTC)
endif ()
endif ()
#添加c库
if (ENABLE_API)
add_subdirectory(api)
endif ()
#ios不编译可执行程序
if (IOS)
return()