-
librtmp下载: http://rtmpdump.mplayerhq.hu/download/
librtmp下载
-
拷贝相关文件到cpp里面
- cmake配置
cmake_minimum_required(VERSION 3.4.1)
#不配置ssl
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_CRYPTO")
add_library( lib-native
SHARED
src/main/cpp/librtmp/amf.c
src/main/cpp/librtmp/hashswf.c
src/main/cpp/librtmp/log.c
src/main/cpp/librtmp/parseurl.c
src/main/cpp/librtmp/rtmp.c
)
target_link_libraries( lib-native
log)
具体的配置查看README
网友评论