ijkPlayer使用遇到的問題

1.ijkPlayer播放器返回奔潰:

IJKFFMoviePlayerController mpc = (__bridge IJKFFMoviePlayerController)opaque;

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上傳錯(cuò)誤,原因是GitHub對(duì)上傳的文件大小有限制,限制為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)編譯失敗

報(bào)錯(cuò)信息如下:
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

添加libz.tbd庫
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 導(dǎo)入項(xiàng)目,有靜態(tài)包經(jīng)驗(yàn)的就就不用看了,這個(gè)對(duì)于我這個(gè)半路出家的和尚還是處理了老半天才解決..a文件直接導(dǎo)入 .h文...
    SunBoyXiao閱讀 3,071評(píng)論 1 0
  • 說明本次redis集群安裝在rhel6.8 64位機(jī)器上,redis版本為3.2.8,redis的gem文件版本為...
    讀或?qū)?/span>閱讀 15,670評(píng)論 3 9
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,688評(píng)論 19 139
  • 剛才在喜馬拉雅上聽了樂嘉老師的一些性格色彩分析課,抱著強(qiáng)烈的好奇心去做了一個(gè)測試,再在網(wǎng)上找了一個(gè)統(tǒng)計(jì)分?jǐn)?shù)的方法,...
    親愛的自己呀閱讀 1,011評(píng)論 4 2

友情鏈接更多精彩內(nèi)容