# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.4.1)
#添加头文件路径(相对于本文件的路径)
include_directories(include)
#设置ffmpeg库所在路径的变量 AS3.2后, ${ANDROID_ABI} 改成 ${CMAKE_ANDROID_ARCH_ABI}
set(FF ${CMAKE_SOURCE_DIR}/libs/${CMAKE_ANDROID_ARCH_ABI})
add_library(avcodec SHARED IMPORTED)
set_target_properties(avcodec PROPERTIES IMPORTED_LOCATION ${FF}/libavcodec.so)
add_library(avformat SHARED IMPORTED)
set_target_properties(avformat PROPERTIES IMPORTED_LOCATION ${FF}/libavformat.so)
add_library(avutil SHARED IMPORTED)
set_target_properties(avutil PROPERTIES IMPORTED_LOCATION ${FF}/libavutil.so)
add_library(swscale SHARED IMPORTED)
set_target_properties(swscale PROPERTIES IMPORTED_LOCATION ${FF}/libswscale.so)
add_library(swresample SHARED IMPORTED)
set_target_properties(swresample PROPERTIES IMPORTED_LOCATION ${FF}/libswresample.so)
# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.
add_library( # Sets the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
native-lib.cpp
FFDemux.cpp
IDemux.cpp
XData.cpp
XThread.cpp
IObserver.cpp
IDecode.cpp
FFDecode.cpp
XParameter.cpp
IVideoView.cpp
GLVideoView.cpp
XTexture.cpp
XShader.cpp
XEGL.cpp
IResample.cpp
FFResample.cpp
IAudioPlay.cpp
SLAudioPlay.cpp
IPlayer.cpp
IPlayerBuilder.cpp
FFPlayerBuilder.cpp
IPlayerProxy.cpp)
# Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build.
find_library( # Sets the name of the path variable.
log-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
log)
# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
native-lib
#将avcodec链接到native-lib中
avcodec avformat avutil swscale swresample android
OpenSLES
GLESv2
EGL
android
# Links the target library to the log library
# included in the NDK.
${log-lib})
没有合适的资源?快使用搜索试试~ 我知道了~
FFmpeg安卓流媒体播放器项目.zip
共200个文件
h:129个
cpp:23个
xml:15个
0 下载量 32 浏览量
2024-08-22
17:08:51
上传
评论
收藏 6.21MB ZIP 举报
温馨提示
项目工程资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松copy复刻,拿到资料包后可轻松复现出一样的项目,本人系统开发经验充足(全栈开发),有任何使用问题欢迎随时与我联系,我会及时为您解惑,提供帮助 【资源内容】:项目具体内容可查看/点击本页面下方的*资源详情*,包含完整源码+工程文件+说明(若有)等。【若无VIP,此资源可私信获取】 【本人专注IT领域】:有任何使用问题欢迎随时与我联系,我会及时解答,第一时间为您提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 【适合场景】:相关项目设计中,皆可应用在项目开发、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面中 可借鉴此优质项目实现复刻,也可基于此项目来扩展开发出更多功能 #注 1. 本资源仅用于开源学习和技术交流。不可商用等,一切后果由使用者承担 2. 部分字体及插图等来自网络,若是侵权请联系删除,本人不对所涉及的版权问题或内容负法律责任。收取的费用仅用于整理和收集资料耗费时间的酬劳 3. 积分资源不提供使用问题指导/解答
资源推荐
资源详情
资源评论
收起资源包目录
FFmpeg安卓流媒体播放器项目.zip (200个子文件)
gradlew.bat 2KB
XShader.cpp 9KB
SLAudioPlay.cpp 6KB
IPlayer.cpp 5KB
FFDemux.cpp 4KB
FFDecode.cpp 4KB
XEGL.cpp 3KB
FFResample.cpp 2KB
IDecode.cpp 2KB
XTexture.cpp 2KB
IPlayerProxy.cpp 2KB
IAudioPlay.cpp 1KB
native-lib.cpp 1KB
XThread.cpp 1KB
FFPlayerBuilder.cpp 1008B
IPlayerBuilder.cpp 964B
XData.cpp 653B
GLVideoView.cpp 556B
IDemux.cpp 541B
IObserver.cpp 530B
IResample.cpp 212B
IVideoView.cpp 125B
XParameter.cpp 64B
XLog.cpp 58B
.gitignore 208B
.gitignore 7B
build.gradle 1KB
build.gradle 558B
settings.gradle 41B
gradlew 5KB
avcodec.h 213KB
avformat.h 113KB
avfilter.h 42KB
opt.h 35KB
pixfmt.h 33KB
avio.h 31KB
frame.h 26KB
mem.h 23KB
hwcontext.h 22KB
swresample.h 21KB
intreadwrite.h 18KB
common.h 15KB
pixdesc.h 15KB
avstring.h 14KB
swscale.h 12KB
log.h 11KB
imgutils.h 11KB
buffer.h 10KB
samplefmt.h 10KB
channel_layout.h 9KB
avutil.h 9KB
hash.h 8KB
dict.h 8KB
version.h 8KB
spherical.h 8KB
mathematics.h 8KB
vdpau.h 8KB
bprint.h 8KB
parseutils.h 7KB
buffersrc.h 6KB
buffersink.h 6KB
hwcontext_d3d11va.h 6KB
xvmc.h 6KB
vda.h 6KB
audio_fifo.h 6KB
fifo.h 6KB
rational.h 6KB
cpu.h 5KB
error.h 5KB
tree.h 5KB
timecode.h 5KB
eval.h 5KB
version.h 5KB
stereo3d.h 5KB
attributes.h 4KB
hwcontext_drm.h 4KB
vaapi.h 4KB
dirac.h 4KB
videotoolbox.h 4KB
mastering_display_metadata.h 4KB
version.h 4KB
hwcontext_vaapi.h 4KB
qsv.h 4KB
dv_profile.h 4KB
threadmessage.h 4KB
display.h 3KB
murmur3.h 3KB
downmix_info.h 3KB
crc.h 3KB
avfft.h 3KB
hmac.h 3KB
bswap.h 3KB
d3d11va.h 3KB
xtea.h 3KB
mediacodec.h 3KB
version.h 3KB
timestamp.h 3KB
avdct.h 3KB
file.h 3KB
cast5.h 3KB
共 200 条
- 1
- 2
资源评论
热爱技术。
- 粉丝: 2436
- 资源: 7862
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功