Files
TTVideoPlayer/player-rtmp-native/LOCAL-CHANGES.md
T

10 lines
1021 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本地构建与修改
上游固定提交见 third_party/UPSTREAM.md。只构建播放 JNI,排除 RTMPMuxer Java 类和推流 C 文件。
JNI 头文件中的三个推流/文件导出函数定义由 TT_RTMP_PLAYBACK_ONLY 宏排除,避免引入对应 muxer 实现。
NDK 28.2.13676358 / CMake 3.22.1,四 ABI,max-page-size/common-page-size 为 16384。
Windows 上 AGP 的 `externalNativeBuildClean*` 调用 ninja clean 时可能因文件占用失败且不输出原因;本模块的 `clean` 改为直接删除 `.cxx`/`.externalNativeBuild`,下次构建重新生成 CMake 缓存。
JNI 本地修改:指针经 intptr_t 转换;失败路径释放 JNI UTF 字符串、关闭 RTMP 连接;读取缓冲分配失败返回错误码;关闭可能含凭证的底层报文日志。
使用 NO_CRYPTO,不提供 RTMPS。其余协议实现沿用上游;这不是完整 native 安全审计。
Apache/LGPL 许可和提交信息作为 assets 打包。发行时应同时保留对应源代码、修改和可重建脚本。