https://github.com/calvinchengx/androidrtc
https://github.com/calvinchengx/androidrtc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/calvinchengx/androidrtc
- Owner: calvinchengx
- License: mit
- Created: 2016-11-22T09:07:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T09:08:17.000Z (over 8 years ago)
- Last Synced: 2025-01-16T15:29:06.599Z (5 months ago)
- Language: Java
- Size: 200 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidRTC
An example of native WebRTC on Android using PubNub's PnWebRTC API for signaling.### Big News: PubNub Releases Android WebRTC Signaling API!

This means that you can now create video chatting applications natively on Android in a breeze. Best of all, it is fully compatible with the [PubNub Javascript WebRTC SDK][JS SDK]! That's right, you are minutes away from creating your very own cross platform video-chatting application.
[__Get it now!__][PnWebRTC]
## The AndroidRTC Example App
This app shows how to accomplish signling on a standby channel to coordinate users, then hop into a video chat and use the PnWebRTC API for signaling. You can even make a call to the AndroidRTC App [from the web interface](http://kevingleason.me/AndroidRTC).
Users in this app layout must be subscribed to `username-stdby`, a standby channel. The Android side checks if a user is online by checking presence on the standby channel.
In this app, a call can be placed by sending a JSON packet to the user's standby channel:
{"call_user":"UserName","call_time":currentTimeMillis}
Upon accepting the call, the answerer creates the SDP Offer, and video chat begins.
### Incoming Calls
AndroidRTC provides a good example of how to handle incoming calls.
### User Messages
This app also shows how to send custom user messages. These messages could be chat, game scores, and much more.
[PnWebRTC]:https://github.com/GleasonK/pubnub-android-webrtc
[JavaDoc]:http://kevingleason.me/pubnub-android-webrtc/
[AndroidRTC]:https://github.com/GleasonK/AndroidRTC/
[JS SDK]:https://github.com/stephenlb/webrtc-sdk