How to use WebRTC + Pubnub Api for video chat client in Native android app
Asked Answered
G

2

7

i am working on one android application with the functionality of p2p video chat just like Skype. while researching on google, i got some libraries but not getting anything for android native.

i decided to go with WebRTC with the use of PubNub api. how can i create a video chat native android client with the use of there libraries?

i found one code for native video chat client,

https://github.com/pchab/AndroidRTC

this demo application require url with IP:PORT so i have one confusion about that how the server will be?

can anyone help me?

Gayla answered 26/2, 2015 at 10:40 Comment(3)
Hi Ajay, thank you for asking about Android Native Java Support with WebRTC and PubNub. You may be interested in checking out XirSys xirsys.com as an option for your Java Android needs.Milliary
@PubNub : Really Thanx for your help. i have registered with xirsys. and followed all steps as per guide suggest. and got "Sucsess" output. how can i use this detail in Android RTC app?Gayla
@PubNub : but how can i integrate xirsys api in Android native app for video chat? can i use github.com/pchab/AndroidRTC ?Gayla
C
2

as I understand you need some signaling server which allows to detect peers, exchange session descriptions to setup media ports; and helps share everything used for initial handshake. You can find more information here: https://www.webrtc-experiment.com/docs/WebRTC-Signaling-Concepts.html. There a lot of open source implementations e.g. https://janus.conf.meetecho.com/.

Hope this helps.

Caviness answered 5/3, 2015 at 12:45 Comment(0)
S
2

@Alexey Osminin and @Pubnub are right: you need a signal protocol service (PubNub) and you need a hosted WebRTC solution for the audio/video streams.

Your best bet is to start with this awesome blog, BUILDING AN ANDROID WEBRTC VIDEO CHAT APP, by Kevin Gleason who is the one that did the AndroidRTC and WebRTC research for PubNub as an intern.

PubNub & WebRTC

There is a lot of confusion around what PubNub offers in the WebRTC arena and we have compiled everything you need to know into a single knowledge base article.

Spurry answered 3/9, 2015 at 19:20 Comment(3)
I edited above adding link to AndroidRTC example in github. github.com/pubnub/AndroidRTCSpurry
Error:Artifact 'com.android.tools.build:builder-test-api:0.13.2:builder-test-api.jar' not found.Clepsydra
Above error is there after adding your project into android studio.Clepsydra

© 2022 - 2024 — McMap. All rights reserved.