简体   繁体   English

关于Android上的WebRTC的几个问题

[英]A few questions about webRTC on android

I have a few questions about webRTC on android. 我对Android上的webRTC有一些疑问。 I can say I'm new about android and webRTC but I can also say I made tooo much research about webRTC on android. 我可以说我对android和webRTC是陌生的,但我也可以说我对android上的webRTC进行了很多研究。 But still have a few questions. 但是仍然有一些问题。 (some of them because of I'm new, and some of them because of I'm okey but not fully) (其中一些是因为我是新来的,而有些是因为我是好,但不完全是)

  1. I'm trying to make an android app which is going to communicate between web browser (first choice is chrome) and android device directly (p2p we can say). 我正在尝试制作一个Android应用程序,它将直接在Web浏览器(首选是chrome)和android设备(可以说p2p)之间进行通信。 So I made too much research and I found webRTC is good for me. 因此,我做了很多研究,发现webRTC对我有好处。 Do you advise me something other or is it okey you think? 您是否还建议我其他事情,或者您认为还可以吗? (also I am going to code a plugin for chrome). (同样,我将为Chrome编写插件)。
  2. Nearly every document says 'android is not directly support webRTC'. 几乎每个文档都说“ Android不直接支持webRTC”。 So I need something to provide me webRTC on android. 所以我需要一些东西来在android上为我提供webRTC。 What it is? 这是什么? Is it native android that I have to code? 我必须编码的是本机android吗? Is it native (NDK) library that I have to include my project? 我必须包含项目的本地(NDK)库吗? Or is it a java lib? 还是Java库? Or should I go for cordova/crosswalk or sth like that? 还是我应该去科尔多瓦/人行横道之类的? I researched all but didn't find something can help me. 我研究了所有内容,但没有找到可以帮助我的东西。 Yeah there are documents about it but not enough.. 是的,有关于它的文件,但还不够。
  3. Some of documents says, I need chromium. 一些文件说,我需要铬。 But why and how? 但是为什么以及如何? They show me lots of linux terminal commands and even there is no a line java or C or C++ code. 他们向我展示了许多Linux终端命令,甚至没有一行Java或C或C ++代码。 Even some terminal commands and links that they give is not working. 即使它们提供的某些终端命令和链接也无法正常工作。
  4. I read/found/tried these things as a result of my research: 由于研究,我阅读/发现/尝试过这些东西:

Apache cordova 阿帕奇·科尔多瓦(Apache Cordova)

Crosswalk 人行横道

http://www.webrtc.org/ http://www.webrtc.org/

https://github.com/webrtc https://github.com/webrtc

http://webrtc.github.io/samples/ http://webrtc.github.io/samples/

http://simonguest.com/2013/08/06/bui...t-for-android/ http://simonguest.com/2013/08/06/bui...t-for-android/

http://orcaman.blogspot.com.tr/2014/...tc-source.html http://orcaman.blogspot.com.tr/2014/...tc-source.html

https://github.com/pchab/ProjectRTC https://github.com/pchab/ProjectRTC

https://github.com/pchab/AndroidRTC https://github.com/pchab/AndroidRTC

and something more.. 还有更多..

in a nutshell I need help. 简而言之,我需要帮助。 Please give me your hand. 请给我你的手。 Thank you. 谢谢。 (because I'm really very helpless and tried to do my best) Thank you. (因为我真的很无助,并努力做到最好)谢谢。

As others have suggested, I recommend checking out g.co/webrtc . 正如其他人建议的那样,我建议您查看g.co/webrtc As I understand it, your goal is to make Android connect to a web browser using WebRTC. 据我了解,您的目标是使Android使用WebRTC连接到Web浏览器。 There are two (three) ways you can achieve that. 有两种(三种)方法可以实现。

  1. You can just use Chrome, Opera or Firefox for Android. 您只能使用Chrome,Opera或Firefox for Android。 All these browsers support WebRTC, and it allows you to use the same code for your web app, as for your Android app. 所有这些浏览器都支持WebRTC,它使您可以为Web应用程序使用与Android应用程序相同的代码。 With the new Add to homescreen support, as well as support for push notifications from web apps on Android, this could be a very good solution for you. 借助新的“添加到主屏幕”支持以及对Android上Web应用程序的推送通知的支持,这对您来说可能是一个非常好的解决方案。

  2. You can use the Android native WebRTC library, available from WebRTC.org . 您可以使用可从WebRTC.org获得的Android本机WebRTC库。 As mentioned in my article , I recommend using the pristine.io compiled library, available from MavenCentral. 我的文章所述 ,我建议使用MavenCentral提供的pristine.io编译库。

  3. If you can limit your application to Lollipop, you can use WebView, which support WebRTC now iirc. 如果可以将应用程序限制为Lollipop,则可以使用WebView,它现在支持iirc WebRTC。 I don't know much about it though. 我对此不太了解。

And the best resource for getting help is discuss-webrtc . 获得帮助的最佳资源是describe-webrtc It's a lot more active than StackOverflow. 它比StackOverflow活跃得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM