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

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

Open
iamqk opened this issue Dec 13, 2021 · 3 comments
Open

Comments

@iamqk
Copy link

iamqk commented Dec 13, 2021

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
Copy link
Author

iamqk commented Dec 19, 2021

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
Copy link
Author

iamqk commented Jan 5, 2022

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
Copy link

leo150 commented Oct 20, 2022

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

  • Swift wrapper
  • XCFramework
  • one liner building script
  • fresh version

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

2 participants