Android集成libRtmp

2018-09-20  本文已影响0人  曾大稳丶
  1. librtmp下载: http://rtmpdump.mplayerhq.hu/download/

    librtmp下载
  2. 拷贝相关文件到cpp里面

目录
  1. 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

上一篇下一篇

猜你喜欢

热点阅读