Android集成libRtmp

  1. librtmp下载: http://rtmpdump.mplayerhq.hu/download/
    librtmp下载

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

目录

  1. cmake配置
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    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

-------------The End-------------