Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter版本1.7.8,iOS,播放rtsp内存一直增加到崩溃 #16

Open
iniwf opened this issue Aug 8, 2019 · 11 comments
Open

flutter版本1.7.8,iOS,播放rtsp内存一直增加到崩溃 #16

iniwf opened this issue Aug 8, 2019 · 11 comments

Comments

@iniwf
Copy link

iniwf commented Aug 8, 2019

如题

@jadennn
Copy link
Owner

jadennn commented Aug 8, 2019

你好,我前天更新了版本,解决IOS内存泄漏的问题,用新版本试过了没

@iniwf
Copy link
Author

iniwf commented Aug 8, 2019

好的,我验证一下,谢谢!

@jadennn
Copy link
Owner

jadennn commented Aug 8, 2019

嗯,如果你不需要自己新增格式的话直接把GitHub的这个仓库clone,然后本地加入到项目中即可,,如果你需要新增格式需要重新编译ijk的库,可以下载码云里面的代码,自己编译,编译方法码云里面有,IOS的ijkplayer代码只能用mac编译

@iniwf
Copy link
Author

iniwf commented Aug 8, 2019

clone代码到本地,直接跑example也是报下面的错误:
看了一下framework才8.9 MB

ld: warning: ignoring file /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework
Undefined symbols for architecture arm64:
"OBJC_CLASS$_IJKFFOptions", referenced from:
objc-class-ref in libflutter_ijk.a(FlutterIjkPlugin.o)

@jadennn
Copy link
Owner

jadennn commented Aug 8, 2019

clone代码到本地,直接跑example也是报下面的错误:
看了一下framework才8.9 MB

ld: warning: ignoring file /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework
Undefined symbols for architecture arm64:
"OBJC_CLASS$_IJKFFOptions", referenced from:
objc-class-ref in libflutter_ijk.a(FlutterIjkPlugin.o)

兄弟,你有qq或者微信吗?这样沟通太不方便了

@abc873693
Copy link

我使用的專案有測試 似乎是rtsp來源的問題
手頭有兩個來源
一個是攝影機內建的rtsp
另一個是將攝影機的rtsp 用ffmpeg restream
後者會發生崩潰 在iOS上 我還在理解問題原因

@iniwf
Copy link
Author

iniwf commented Nov 12, 2019

硬解会内存一直增加

@abc873693
Copy link

@iniwf 這樣有解決方法嗎?

@iniwf
Copy link
Author

iniwf commented Nov 29, 2019

@iniwf 這樣有解決方法嗎?

rtsp开启硬解才会,可以使用软解

@dhonor
Copy link

dhonor commented Feb 6, 2020

崩溃解决了么

@yuleidandan
Copy link

clone代码到本地,直接跑example也是报下面的错误:
看了一下framework才8.9 MB

ld: warning: ignoring file /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/zhang/Desktop/flutter_ijk/ios/IJKMediaFramework.framework/IJKMediaFramework
Undefined symbols for architecture arm64:
"OBJC_CLASS$_IJKFFOptions", referenced from:
objc-class-ref in libflutter_ijk.a(FlutterIjkPlugin.o)同样是这样的问题,怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants