ijkPlayer使用遇到的问题

1.ijkPlayer播放器返回奔溃:

IJKFFMoviePlayerController mpc = (__bridge IJKFFMoviePlayerController)opaque;

ijkPlayer使用遇到的问题_第1张图片
ijkPlayer播放器返回奔溃

未解决:

1.remote: error: File xxx/IJKMediaFramework.framework/IJKMediaFramework is 112.62 MB; this exceeds GitHub's file size limit of 100.00 MB

原因分析:
git上传错误,原因是GitHub对上传的文件大小有限制,限制为100MB,而IJKMediaFramework的大小为112MB。
解决途径:IJKMediaFramework包无法正常上传github,只能去掉后再次上传。IJKMediaFramework以其他形式保留。

2. ff_read(83):EXC_BAD_ACCESS(code=1,addredd=0x20)

[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

**info.plist中添加NSCameraUsageDescription即可。

3. IJKMediaFramework(http.o)编译失败

报错信息如下:
Undefined symbols for architecture x86_64:
"_inflate", referenced from:
_http_read_stream in IJKMediaFramework(http.o)
_rtmp_open in IJKMediaFramework(rtmpproto.o)
"_inflateEnd", referenced from:
_http_close in IJKMediaFramework(http.o)
_http_read_header in IJKMediaFramework(http.o)
_rtmp_open in IJKMediaFramework(rtmpproto.o)
"inflateInit2", referenced from:
_http_read_header in IJKMediaFramework(http.o)
"inflateInit", referenced from:
_rtmp_open in IJKMediaFramework(rtmpproto.o)
"_uncompress", referenced from:
_id3v2_read_internal in IJKMediaFramework(id3v2.o)
_mov_read_cmov in IJKMediaFramework(mov.o)
"_zlibCompileFlags", referenced from:
_http_read_header in IJKMediaFramework(http.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

原因是:缺少libz.tbd库
解决方案:Build Phases-Link Binary with Libraries-libz.tbd

ijkPlayer使用遇到的问题_第2张图片
添加libz.tbd库

你可能感兴趣的:(ijkPlayer使用遇到的问题)