ethand91 / mediasoup-ios-client

Mediasoup 3 iOS Client
ISC License
130 stars 64 forks source link

Any plan on release a new version of framework that can be used directly? #121

Open iamqk opened 2 years ago

iamqk commented 2 years ago

Now google seemed give up on iOS, self build this framework is really hard and also lack documents about how to build the framework by self. Thanks for your works!

iamqk commented 2 years ago

for lib shared in the link describe in https://cocoapods.org/pods/mediasoup-ios-client is no longer buildable for latest release, Ambiguous step for build this project for your self: 1 https://github.com/shiguredo-webrtc-build/webrtc-build down load iOS release from this git or src build your self (disk usage warning! about 40gb) 2 replace header and lib and framework(step 1 git's webrtc framework is big, but can be replace by this site and google's official) 3 change project setting's and link lib with new header and static lib and so on new webrtc.a, new webrtc.framework, Networkframe, glkit.framework, videotoolbox.framework 4 and precompile define(as like DEBUG=1) GCC_PREPROCESSOR_DEFINITIONS, add WEBRTC_MAC and WEBRTC_POSIX 5 modify ortc.cpp in libmediasoupclient, remove or comment aMimeType about H264(cause the lib/frame provided in step 1, h264 is not available for default, you need to build for your self, if you need h264 stream, and in my try that build for h264 fail in latest release) 6 build your new project 7 combine x86 and arm64 for sim and device 8 use your new framework

cause I changed the h264 part, I will test in my project for results and I changed some release in OC code that cause project crash

I will pull my code after my project's test

hope this can help that any one need to build this project by yourself.

iamqk commented 2 years ago

I carefully read the build guid again and build all the WebRTC from blank. And now change the cpu issue of using by these two lib and also optimize some memory usage, but now, there are still memory leak issue, I will looking into it in the future. Anyone want a short cut, please goto link below. https://github.com/iamqk/mediasoup-ios-client-sc

leo150 commented 1 year ago

I recommend to use this repo: https://github.com/VLprojects/mediasoup-client-swift