Reputation: 109
Im a bit confused, Ive only seen examples from android to pc or vice versa. I need to make an android app that connects from two phones(android) for video chat. I was wondering, I know it might be a silly question, but can you do that with webrtc? Do you know any good tutorials that explains it or something similar? Or can you recommend any good books that treats the subject?
Does my project need to be in a Linux enviroment machine?
Edited: Okay Ive implemented it on the web, it works for pc browsers. But I cannot put it in a Web View since Android´s native browser does not allow access to native camera. So how can I put the html and javascript code inside the android app without using its browser?
Upvotes: 5
Views: 2003
Reputation: 3621
Yes is it possible to do that, but also need a server, to exchange ICE or STUN candidates, only WebRTC can't do that. I developed such a program, only resource that I had, it was source codes and official link WebRTC. It's API change very often, so I don't think that there will be a book about that, practically it is possible to use it without any books, there is a WebRTCDemo project that is enough.
Does my project need to be in a Linux enviroment machine?
Not mandatory, but it is very recommended to use a Linux environment
Update: the link is not working anymore
Upvotes: 1
Reputation: 5949
Yes, you can do this with WebRTC. It's already done, and was already done at the time of this question.
The AppRTCDemo program from here is an Android WebRTC client. Using Google's server infrastructure, you can connect any two WebRTC peers, including two Android peers. As far as I know, there is not a binary Android implementation available, but you can download the source code (it's massive, ~15GB) and build this yourself, with no actual programming required.
If you want to implement your own server component, you can start from the apprtc source code.
Upvotes: 2