-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
mobile: support compiling with go-mobile #64
Comments
How could one start working on this issue? I guess the openssl lib has to be cross compiled for ARM so that the C files link to correct library. Do you have a hint for how to start ? I'm on macOS and everything works beside the gomobile build process due to an missing import:
|
The only option is to split the codebase and use a c lib and wrap it. This is ALL of course until a pure golang DTLS lib is sturdy enough. But this is the world we live in for now. SO a very brief search came up with: https://github.com/sics-iot/tinydtls-standalone |
We're going to focus on getting connections between two pions clients working for now. Afterwards we'll look into this. We intend to estimate the difference in effort between compiling the current version on ARM and porting DTLS to pure go. If the difference is minimal we'll likely pursue the latter since it is our goal to avoid the CGO dependency anyway. |
I think pure golang is a better approach too
…On Mon, 6 Aug 2018, 21:46 Michiel De Backker, ***@***.***> wrote:
We're going to focus on getting connections between two pions clients
working for now. Afterwards we'll look into this. We intend to estimate the
difference in effort between compiling the current version on ARM and
porting DTLS to pure go. If the difference is minimal we'll likely pursue
the latter since it is our goal to avoid the CGO dependency anyway.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#64 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwpJMhzT_waQ-OVC9G5V79dzGA3qSks5uOJ0mgaJpZM4VuT8C>
.
|
Just to update anyone watching, great news in Slack today! Max was able to get pion-WebRTC working on Android (and will be doing iOS as well) I am not involved in the work, but sounds very promising :) |
How did he achieve it? did he port the C parts to pure golang? Anyways, awesome work, the project seems to be real nice and would love to see it in pure golang, then it would be the only webrtc implementation that seems to be easily portable :) |
I think he cross compiled OpenSSL using a docker container. Hopefully we can get this added as an example at some point. |
That would be awesome |
@backkem yes i am pretty sure this is what he did. On android you can build as a shared lib and on IOS as an archive and then use it |
Hi, i am Max I hope to see pure golang dtls implementation in pions! |
Hey Max . That's awesome. I will try it out with flutter for android and iOS and feedback my efforts |
We now have a 100% Go (no OpenSSL dependency) version of pion-WebRTC Me and @backkem just got our DTLS branch to the point it is ready to be tested. You can try it out here I would really appreciate of people could test it out. I am going to close this issue since I am assuming since we are 100% Go we no longer need special instructions. Feel free to re-open if there is something that we still need for mobile users, thanks! |
A.w.e.s.o.m.e. |
<3 |
i tried the latest pion code and use gomobile bind to build android/ios library, it all failed, anyhelp? |
TBD if we want to try this before porting DTLS (#20).
cc @chrisprobst @gedw99
The text was updated successfully, but these errors were encountered: