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

【开脑洞】用go直接编写移动端的推拉流库 #34

Closed
zkbqhuang opened this issue Oct 31, 2020 · 1 comment
Closed

【开脑洞】用go直接编写移动端的推拉流库 #34

zkbqhuang opened this issue Oct 31, 2020 · 1 comment

Comments

@zkbqhuang
Copy link

gomobile可将go程序编译成Android和iOS库,gomobile安装和使用比较容易,具体可参考。
https://github.com/golang/go/wiki/Mobile#building-and-deploying-to-android-1
这样就可以在服务端和客户端共用一些相同功能性的代码,比如rtmp等数据流的解析,传输处理。这样整体项目的整体性更好。也将go语言的便捷性使用扩大,替代C/C++编写移动底层库,降低编译和使用难度。

这边推荐一个im类型项目,它的Android客户端就是这么干的,gomobile编译出.aar给Android使用,可供参考。
https://github.com/dearcode/candy

当然这只是个建议,还不知道是否真的可行,大神有兴趣可以尝试尝试!

@q191201771
Copy link
Owner

哈哈,开开脑洞挺好,不过暂时没时间看了,先标记在这吧。

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

No branches or pull requests

2 participants