Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webrtc Android to Android?

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?

like image 798
Mijail Avatar asked Oct 20 '22 16:10

Mijail


People also ask

Can WebRTC work on Android?

You can use WebRTC facilities in the Android Platform with the help of Ant Media Server's Native WebRTC Android SDK. In this blog post, features of Webrtc Android SDK will be presented with a sample Android project which comes bundled with the SDK.

What is WebRTC and how does it work?

The "WebRTC" (Web Real-Time Communication) is an open-source protocol that allows real-time communication and data sharing between different browsers and devices. It allows sharing of voice, video, and data over the web. It is a protocol that sets two-way communication between two browsers in real-time.


1 Answers

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.

like image 167
mattm Avatar answered Oct 22 '22 08:10

mattm